{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\users\\anatoly\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\numpy\\_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:\n",
      "c:\\users\\anatoly\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\numpy\\.libs\\libopenblas.GK7GX5KEQ4F6UYO3P26ULGBQYHGQO7J4.gfortran-win_amd64.dll\n",
      "c:\\users\\anatoly\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\numpy\\.libs\\libopenblas.WCDJNK7YVMPZQ2ME2ZZHJJRJ3JIKNDB7.gfortran-win_amd64.dll\n",
      "  warnings.warn(\"loaded more than 1 DLL from .libs:\"\n"
     ]
    }
   ],
   "source": [
    "import sys\n",
    "from matplotlib import pyplot as plt\n",
    "from sklift.metrics import uplift_at_k\n",
    "import seaborn as sns\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "# install uplift library scikit-uplift and other libraries \n",
    "#!{sys.executable} -m pip install scikit-uplift dill catboost\n",
    "\n",
    "%config InlineBackend.figure_format = 'svg'\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Load Dataset"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "We are going to use a Hillstrom dataset from the MineThatData [hosted](https://blog.minethatdata.com/2008/03/minethatdata-e-mail-analytics-and-data.html) in march 2008 by the president of this company Kevin Hillstrom.\n",
    "\n",
    "MineThatData is a consulting company that helps CEO understand the complex relationship between Customers, Advertising, Products, Brands, and Channels."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Data description"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Dataset can be loaded from sklift.datasets module using fetch_hillstrom function.\n",
    "\n",
    "Read more about dataset in the [api docs](https://www.uplift-modeling.com/en/latest/api/datasets/fetch_hillstrom.html).\n",
    "\n",
    "This dataset contains 64,000 customers who last purchased within twelve months. The customers were involved in an e-mail test"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Major columns**"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- **visit** (binary): target. 1/0 indicator, 1 = Customer visited website in the following two weeks.\n",
    "\n",
    "- **conversion** (binary): target. 1/0 indicator, 1 = Customer purchased merchandise in the following two weeks.\n",
    "\n",
    "- **spend** (float): target. Actual dollars spent in the following two weeks.\n",
    "\n",
    "- **segment** (str): treatment. The e-mail campaign the customer received\n",
    "\n",
    "Read more in the [docs](https://www.uplift-modeling.com/en/latest/api/datasets/fetch_hillstrom.html#hillstrom)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "from sklift.datasets import fetch_hillstrom\n",
    "\n",
    "# returns sklearn Bunch object\n",
    "# with data, target, treatment keys\n",
    "# data features (pd.DataFrame), target (pd.Series), treatment (pd.Series) values \n",
    "dataset = fetch_hillstrom()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Dataset type: <class 'sklearn.utils.Bunch'>\n",
      "\n",
      "Dataset features shape: (64000, 8)\n",
      "Dataset target shape: (64000,)\n",
      "Dataset treatment shape: (64000,)\n"
     ]
    }
   ],
   "source": [
    "print(f\"Dataset type: {type(dataset)}\\n\")\n",
    "print(f\"Dataset features shape: {dataset.data.shape}\")\n",
    "print(f\"Dataset target shape: {dataset.target.shape}\")\n",
    "print(f\"Dataset treatment shape: {dataset.treatment.shape}\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## EDA "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>recency</th>\n",
       "      <th>history_segment</th>\n",
       "      <th>history</th>\n",
       "      <th>mens</th>\n",
       "      <th>womens</th>\n",
       "      <th>zip_code</th>\n",
       "      <th>newbie</th>\n",
       "      <th>channel</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>10</td>\n",
       "      <td>2) $100 - $200</td>\n",
       "      <td>142.44</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Surburban</td>\n",
       "      <td>0</td>\n",
       "      <td>Phone</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>6</td>\n",
       "      <td>3) $200 - $350</td>\n",
       "      <td>329.08</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Rural</td>\n",
       "      <td>1</td>\n",
       "      <td>Web</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>7</td>\n",
       "      <td>2) $100 - $200</td>\n",
       "      <td>180.65</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>Surburban</td>\n",
       "      <td>1</td>\n",
       "      <td>Web</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>9</td>\n",
       "      <td>5) $500 - $750</td>\n",
       "      <td>675.83</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Rural</td>\n",
       "      <td>1</td>\n",
       "      <td>Web</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2</td>\n",
       "      <td>1) $0 - $100</td>\n",
       "      <td>45.34</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Urban</td>\n",
       "      <td>0</td>\n",
       "      <td>Web</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>63995</th>\n",
       "      <td>10</td>\n",
       "      <td>2) $100 - $200</td>\n",
       "      <td>105.54</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Urban</td>\n",
       "      <td>0</td>\n",
       "      <td>Web</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>63996</th>\n",
       "      <td>5</td>\n",
       "      <td>1) $0 - $100</td>\n",
       "      <td>38.91</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>Urban</td>\n",
       "      <td>1</td>\n",
       "      <td>Phone</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>63997</th>\n",
       "      <td>6</td>\n",
       "      <td>1) $0 - $100</td>\n",
       "      <td>29.99</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Urban</td>\n",
       "      <td>1</td>\n",
       "      <td>Phone</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>63998</th>\n",
       "      <td>1</td>\n",
       "      <td>5) $500 - $750</td>\n",
       "      <td>552.94</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Surburban</td>\n",
       "      <td>1</td>\n",
       "      <td>Multichannel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>63999</th>\n",
       "      <td>1</td>\n",
       "      <td>4) $350 - $500</td>\n",
       "      <td>472.82</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>Surburban</td>\n",
       "      <td>0</td>\n",
       "      <td>Web</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       recency history_segment  history  mens  womens   zip_code  newbie  \\\n",
       "0           10  2) $100 - $200   142.44     1       0  Surburban       0   \n",
       "1            6  3) $200 - $350   329.08     1       1      Rural       1   \n",
       "2            7  2) $100 - $200   180.65     0       1  Surburban       1   \n",
       "3            9  5) $500 - $750   675.83     1       0      Rural       1   \n",
       "4            2    1) $0 - $100    45.34     1       0      Urban       0   \n",
       "63995       10  2) $100 - $200   105.54     1       0      Urban       0   \n",
       "63996        5    1) $0 - $100    38.91     0       1      Urban       1   \n",
       "63997        6    1) $0 - $100    29.99     1       0      Urban       1   \n",
       "63998        1  5) $500 - $750   552.94     1       0  Surburban       1   \n",
       "63999        1  4) $350 - $500   472.82     0       1  Surburban       0   \n",
       "\n",
       "            channel  \n",
       "0             Phone  \n",
       "1               Web  \n",
       "2               Web  \n",
       "3               Web  \n",
       "4               Web  \n",
       "63995           Web  \n",
       "63996         Phone  \n",
       "63997         Phone  \n",
       "63998  Multichannel  \n",
       "63999           Web  "
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.head().append(dataset.data.tail())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 64000 entries, 0 to 63999\n",
      "Data columns (total 8 columns):\n",
      " #   Column           Non-Null Count  Dtype  \n",
      "---  ------           --------------  -----  \n",
      " 0   recency          64000 non-null  int64  \n",
      " 1   history_segment  64000 non-null  object \n",
      " 2   history          64000 non-null  float64\n",
      " 3   mens             64000 non-null  int64  \n",
      " 4   womens           64000 non-null  int64  \n",
      " 5   zip_code         64000 non-null  object \n",
      " 6   newbie           64000 non-null  int64  \n",
      " 7   channel          64000 non-null  object \n",
      "dtypes: float64(1), int64(4), object(3)\n",
      "memory usage: 3.9+ MB\n"
     ]
    }
   ],
   "source": [
    "#info about types and null cells in dataset\n",
    "dataset.data.info()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "There is no missing data in the cells! "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Categorical data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "cat_features = ['channel', 'zip_code', 'history_segment', 'newbie']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['Phone', 'Web', 'Multichannel'], dtype=object)"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.channel.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['Surburban', 'Rural', 'Urban'], dtype=object)"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.zip_code.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['2) $100 - $200', '3) $200 - $350', '5) $500 - $750',\n",
       "       '1) $0 - $100', '6) $750 - $1,000', '4) $350 - $500',\n",
       "       '7) $1,000 +'], dtype=object)"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.history_segment.unique()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Zip code**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"293.501229pt\" version=\"1.1\" viewBox=\"0 0 388.0125 293.501229\" width=\"388.0125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:07.691428</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 293.501229 \r\n",
       "L 388.0125 293.501229 \r\n",
       "L 388.0125 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 46.0125 226.893416 \r\n",
       "L 380.8125 226.893416 \r\n",
       "L 380.8125 9.453416 \r\n",
       "L 46.0125 9.453416 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p1bcbc15138)\" d=\"M 73.9125 226.893416 \r\n",
       "L 129.7125 226.893416 \r\n",
       "L 129.7125 19.807702 \r\n",
       "L 73.9125 19.807702 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p1bcbc15138)\" d=\"M 185.5125 226.893416 \r\n",
       "L 241.3125 226.893416 \r\n",
       "L 241.3125 42.224716 \r\n",
       "L 185.5125 42.224716 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#p1bcbc15138)\" d=\"M 297.1125 226.893416 \r\n",
       "L 352.9125 226.893416 \r\n",
       "L 352.9125 158.073543 \r\n",
       "L 297.1125 158.073543 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 101.8125 226.893416 \r\n",
       "L 101.8125 9.453416 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 0 3.5 \r\n",
       "\" id=\"m9a337d935c\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"101.8125\" xlink:href=\"#m9a337d935c\" y=\"226.893416\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- Surburban -->\r\n",
       "      <g transform=\"translate(104.571875 286.301229)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3425 4513 \r\n",
       "L 3425 3897 \r\n",
       "Q 3066 4069 2747 4153 \r\n",
       "Q 2428 4238 2131 4238 \r\n",
       "Q 1616 4238 1336 4038 \r\n",
       "Q 1056 3838 1056 3469 \r\n",
       "Q 1056 3159 1242 3001 \r\n",
       "Q 1428 2844 1947 2747 \r\n",
       "L 2328 2669 \r\n",
       "Q 3034 2534 3370 2195 \r\n",
       "Q 3706 1856 3706 1288 \r\n",
       "Q 3706 609 3251 259 \r\n",
       "Q 2797 -91 1919 -91 \r\n",
       "Q 1588 -91 1214 -16 \r\n",
       "Q 841 59 441 206 \r\n",
       "L 441 856 \r\n",
       "Q 825 641 1194 531 \r\n",
       "Q 1563 422 1919 422 \r\n",
       "Q 2459 422 2753 634 \r\n",
       "Q 3047 847 3047 1241 \r\n",
       "Q 3047 1584 2836 1778 \r\n",
       "Q 2625 1972 2144 2069 \r\n",
       "L 1759 2144 \r\n",
       "Q 1053 2284 737 2584 \r\n",
       "Q 422 2884 422 3419 \r\n",
       "Q 422 4038 858 4394 \r\n",
       "Q 1294 4750 2059 4750 \r\n",
       "Q 2388 4750 2728 4690 \r\n",
       "Q 3069 4631 3425 4513 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-53\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 544 1381 \r\n",
       "L 544 3500 \r\n",
       "L 1119 3500 \r\n",
       "L 1119 1403 \r\n",
       "Q 1119 906 1312 657 \r\n",
       "Q 1506 409 1894 409 \r\n",
       "Q 2359 409 2629 706 \r\n",
       "Q 2900 1003 2900 1516 \r\n",
       "L 2900 3500 \r\n",
       "L 3475 3500 \r\n",
       "L 3475 0 \r\n",
       "L 2900 0 \r\n",
       "L 2900 538 \r\n",
       "Q 2691 219 2414 64 \r\n",
       "Q 2138 -91 1772 -91 \r\n",
       "Q 1169 -91 856 284 \r\n",
       "Q 544 659 544 1381 \r\n",
       "z\r\n",
       "M 1991 3584 \r\n",
       "L 1991 3584 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-75\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2631 2963 \r\n",
       "Q 2534 3019 2420 3045 \r\n",
       "Q 2306 3072 2169 3072 \r\n",
       "Q 1681 3072 1420 2755 \r\n",
       "Q 1159 2438 1159 1844 \r\n",
       "L 1159 0 \r\n",
       "L 581 0 \r\n",
       "L 581 3500 \r\n",
       "L 1159 3500 \r\n",
       "L 1159 2956 \r\n",
       "Q 1341 3275 1631 3429 \r\n",
       "Q 1922 3584 2338 3584 \r\n",
       "Q 2397 3584 2469 3576 \r\n",
       "Q 2541 3569 2628 3553 \r\n",
       "L 2631 2963 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-72\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3116 1747 \r\n",
       "Q 3116 2381 2855 2742 \r\n",
       "Q 2594 3103 2138 3103 \r\n",
       "Q 1681 3103 1420 2742 \r\n",
       "Q 1159 2381 1159 1747 \r\n",
       "Q 1159 1113 1420 752 \r\n",
       "Q 1681 391 2138 391 \r\n",
       "Q 2594 391 2855 752 \r\n",
       "Q 3116 1113 3116 1747 \r\n",
       "z\r\n",
       "M 1159 2969 \r\n",
       "Q 1341 3281 1617 3432 \r\n",
       "Q 1894 3584 2278 3584 \r\n",
       "Q 2916 3584 3314 3078 \r\n",
       "Q 3713 2572 3713 1747 \r\n",
       "Q 3713 922 3314 415 \r\n",
       "Q 2916 -91 2278 -91 \r\n",
       "Q 1894 -91 1617 61 \r\n",
       "Q 1341 213 1159 525 \r\n",
       "L 1159 0 \r\n",
       "L 581 0 \r\n",
       "L 581 4863 \r\n",
       "L 1159 4863 \r\n",
       "L 1159 2969 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-62\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2194 1759 \r\n",
       "Q 1497 1759 1228 1600 \r\n",
       "Q 959 1441 959 1056 \r\n",
       "Q 959 750 1161 570 \r\n",
       "Q 1363 391 1709 391 \r\n",
       "Q 2188 391 2477 730 \r\n",
       "Q 2766 1069 2766 1631 \r\n",
       "L 2766 1759 \r\n",
       "L 2194 1759 \r\n",
       "z\r\n",
       "M 3341 1997 \r\n",
       "L 3341 0 \r\n",
       "L 2766 0 \r\n",
       "L 2766 531 \r\n",
       "Q 2569 213 2275 61 \r\n",
       "Q 1981 -91 1556 -91 \r\n",
       "Q 1019 -91 701 211 \r\n",
       "Q 384 513 384 1019 \r\n",
       "Q 384 1609 779 1909 \r\n",
       "Q 1175 2209 1959 2209 \r\n",
       "L 2766 2209 \r\n",
       "L 2766 2266 \r\n",
       "Q 2766 2663 2505 2880 \r\n",
       "Q 2244 3097 1772 3097 \r\n",
       "Q 1472 3097 1187 3025 \r\n",
       "Q 903 2953 641 2809 \r\n",
       "L 641 3341 \r\n",
       "Q 956 3463 1253 3523 \r\n",
       "Q 1550 3584 1831 3584 \r\n",
       "Q 2591 3584 2966 3190 \r\n",
       "Q 3341 2797 3341 1997 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-61\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3513 2113 \r\n",
       "L 3513 0 \r\n",
       "L 2938 0 \r\n",
       "L 2938 2094 \r\n",
       "Q 2938 2591 2744 2837 \r\n",
       "Q 2550 3084 2163 3084 \r\n",
       "Q 1697 3084 1428 2787 \r\n",
       "Q 1159 2491 1159 1978 \r\n",
       "L 1159 0 \r\n",
       "L 581 0 \r\n",
       "L 581 3500 \r\n",
       "L 1159 3500 \r\n",
       "L 1159 2956 \r\n",
       "Q 1366 3272 1645 3428 \r\n",
       "Q 1925 3584 2291 3584 \r\n",
       "Q 2894 3584 3203 3211 \r\n",
       "Q 3513 2838 3513 2113 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-6e\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-53\"/>\r\n",
       "       <use x=\"63.476562\" xlink:href=\"#DejaVuSans-75\"/>\r\n",
       "       <use x=\"126.855469\" xlink:href=\"#DejaVuSans-72\"/>\r\n",
       "       <use x=\"167.96875\" xlink:href=\"#DejaVuSans-62\"/>\r\n",
       "       <use x=\"231.445312\" xlink:href=\"#DejaVuSans-75\"/>\r\n",
       "       <use x=\"294.824219\" xlink:href=\"#DejaVuSans-72\"/>\r\n",
       "       <use x=\"335.9375\" xlink:href=\"#DejaVuSans-62\"/>\r\n",
       "       <use x=\"399.414062\" xlink:href=\"#DejaVuSans-61\"/>\r\n",
       "       <use x=\"460.693359\" xlink:href=\"#DejaVuSans-6e\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 213.4125 226.893416 \r\n",
       "L 213.4125 9.453416 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"213.4125\" xlink:href=\"#m9a337d935c\" y=\"226.893416\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- Urban -->\r\n",
       "      <g transform=\"translate(216.171875 264.137166)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 556 4666 \r\n",
       "L 1191 4666 \r\n",
       "L 1191 1831 \r\n",
       "Q 1191 1081 1462 751 \r\n",
       "Q 1734 422 2344 422 \r\n",
       "Q 2950 422 3222 751 \r\n",
       "Q 3494 1081 3494 1831 \r\n",
       "L 3494 4666 \r\n",
       "L 4128 4666 \r\n",
       "L 4128 1753 \r\n",
       "Q 4128 841 3676 375 \r\n",
       "Q 3225 -91 2344 -91 \r\n",
       "Q 1459 -91 1007 375 \r\n",
       "Q 556 841 556 1753 \r\n",
       "L 556 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-55\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-55\"/>\r\n",
       "       <use x=\"73.193359\" xlink:href=\"#DejaVuSans-72\"/>\r\n",
       "       <use x=\"114.306641\" xlink:href=\"#DejaVuSans-62\"/>\r\n",
       "       <use x=\"177.783203\" xlink:href=\"#DejaVuSans-61\"/>\r\n",
       "       <use x=\"239.0625\" xlink:href=\"#DejaVuSans-6e\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 325.0125 226.893416 \r\n",
       "L 325.0125 9.453416 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"325.0125\" xlink:href=\"#m9a337d935c\" y=\"226.893416\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- Rural -->\r\n",
       "      <g transform=\"translate(327.771875 259.746541)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2841 2188 \r\n",
       "Q 3044 2119 3236 1894 \r\n",
       "Q 3428 1669 3622 1275 \r\n",
       "L 4263 0 \r\n",
       "L 3584 0 \r\n",
       "L 2988 1197 \r\n",
       "Q 2756 1666 2539 1819 \r\n",
       "Q 2322 1972 1947 1972 \r\n",
       "L 1259 1972 \r\n",
       "L 1259 0 \r\n",
       "L 628 0 \r\n",
       "L 628 4666 \r\n",
       "L 2053 4666 \r\n",
       "Q 2853 4666 3247 4331 \r\n",
       "Q 3641 3997 3641 3322 \r\n",
       "Q 3641 2881 3436 2590 \r\n",
       "Q 3231 2300 2841 2188 \r\n",
       "z\r\n",
       "M 1259 4147 \r\n",
       "L 1259 2491 \r\n",
       "L 2053 2491 \r\n",
       "Q 2509 2491 2742 2702 \r\n",
       "Q 2975 2913 2975 3322 \r\n",
       "Q 2975 3731 2742 3939 \r\n",
       "Q 2509 4147 2053 4147 \r\n",
       "L 1259 4147 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-52\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 603 4863 \r\n",
       "L 1178 4863 \r\n",
       "L 1178 0 \r\n",
       "L 603 0 \r\n",
       "L 603 4863 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-6c\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-52\"/>\r\n",
       "       <use x=\"64.982422\" xlink:href=\"#DejaVuSans-75\"/>\r\n",
       "       <use x=\"128.361328\" xlink:href=\"#DejaVuSans-72\"/>\r\n",
       "       <use x=\"169.474609\" xlink:href=\"#DejaVuSans-61\"/>\r\n",
       "       <use x=\"230.753906\" xlink:href=\"#DejaVuSans-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 226.893416 \r\n",
       "L 380.8125 226.893416 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L -3.5 0 \r\n",
       "\" id=\"me599490ea8\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"226.893416\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(32.65 230.692635)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2034 4250 \r\n",
       "Q 1547 4250 1301 3770 \r\n",
       "Q 1056 3291 1056 2328 \r\n",
       "Q 1056 1369 1301 889 \r\n",
       "Q 1547 409 2034 409 \r\n",
       "Q 2525 409 2770 889 \r\n",
       "Q 3016 1369 3016 2328 \r\n",
       "Q 3016 3291 2770 3770 \r\n",
       "Q 2525 4250 2034 4250 \r\n",
       "z\r\n",
       "M 2034 4750 \r\n",
       "Q 2819 4750 3233 4129 \r\n",
       "Q 3647 3509 3647 2328 \r\n",
       "Q 3647 1150 3233 529 \r\n",
       "Q 2819 -91 2034 -91 \r\n",
       "Q 1250 -91 836 529 \r\n",
       "Q 422 1150 422 2328 \r\n",
       "Q 422 3509 836 4129 \r\n",
       "Q 1250 4750 2034 4750 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 190.91105 \r\n",
       "L 380.8125 190.91105 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"190.91105\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g transform=\"translate(13.5625 194.710269)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 691 4666 \r\n",
       "L 3169 4666 \r\n",
       "L 3169 4134 \r\n",
       "L 1269 4134 \r\n",
       "L 1269 2991 \r\n",
       "Q 1406 3038 1543 3061 \r\n",
       "Q 1681 3084 1819 3084 \r\n",
       "Q 2600 3084 3056 2656 \r\n",
       "Q 3513 2228 3513 1497 \r\n",
       "Q 3513 744 3044 326 \r\n",
       "Q 2575 -91 1722 -91 \r\n",
       "Q 1428 -91 1123 -41 \r\n",
       "Q 819 9 494 109 \r\n",
       "L 494 744 \r\n",
       "Q 775 591 1075 516 \r\n",
       "Q 1375 441 1709 441 \r\n",
       "Q 2250 441 2565 725 \r\n",
       "Q 2881 1009 2881 1497 \r\n",
       "Q 2881 1984 2565 2268 \r\n",
       "Q 2250 2553 1709 2553 \r\n",
       "Q 1456 2553 1204 2497 \r\n",
       "Q 953 2441 691 2322 \r\n",
       "L 691 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 154.928684 \r\n",
       "L 380.8125 154.928684 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"154.928684\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g transform=\"translate(7.2 158.727903)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 794 531 \r\n",
       "L 1825 531 \r\n",
       "L 1825 4091 \r\n",
       "L 703 3866 \r\n",
       "L 703 4441 \r\n",
       "L 1819 4666 \r\n",
       "L 2450 4666 \r\n",
       "L 2450 531 \r\n",
       "L 3481 531 \r\n",
       "L 3481 0 \r\n",
       "L 794 0 \r\n",
       "L 794 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 118.946318 \r\n",
       "L 380.8125 118.946318 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"118.946318\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g transform=\"translate(7.2 122.745536)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 82.963951 \r\n",
       "L 380.8125 82.963951 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"82.963951\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g transform=\"translate(7.2 86.76317)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1228 531 \r\n",
       "L 3431 531 \r\n",
       "L 3431 0 \r\n",
       "L 469 0 \r\n",
       "L 469 531 \r\n",
       "Q 828 903 1448 1529 \r\n",
       "Q 2069 2156 2228 2338 \r\n",
       "Q 2531 2678 2651 2914 \r\n",
       "Q 2772 3150 2772 3378 \r\n",
       "Q 2772 3750 2511 3984 \r\n",
       "Q 2250 4219 1831 4219 \r\n",
       "Q 1534 4219 1204 4116 \r\n",
       "Q 875 4013 500 3803 \r\n",
       "L 500 4441 \r\n",
       "Q 881 4594 1212 4672 \r\n",
       "Q 1544 4750 1819 4750 \r\n",
       "Q 2544 4750 2975 4387 \r\n",
       "Q 3406 4025 3406 3419 \r\n",
       "Q 3406 3131 3298 2873 \r\n",
       "Q 3191 2616 2906 2266 \r\n",
       "Q 2828 2175 2409 1742 \r\n",
       "Q 1991 1309 1228 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_17\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 46.981585 \r\n",
       "L 380.8125 46.981585 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_18\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"46.981585\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g transform=\"translate(7.2 50.780804)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_19\">\r\n",
       "      <path clip-path=\"url(#p1bcbc15138)\" d=\"M 46.0125 10.999219 \r\n",
       "L 380.8125 10.999219 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_20\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#me599490ea8\" y=\"10.999219\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g transform=\"translate(7.2 14.798438)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2597 2516 \r\n",
       "Q 3050 2419 3304 2112 \r\n",
       "Q 3559 1806 3559 1356 \r\n",
       "Q 3559 666 3084 287 \r\n",
       "Q 2609 -91 1734 -91 \r\n",
       "Q 1441 -91 1130 -33 \r\n",
       "Q 819 25 488 141 \r\n",
       "L 488 750 \r\n",
       "Q 750 597 1062 519 \r\n",
       "Q 1375 441 1716 441 \r\n",
       "Q 2309 441 2620 675 \r\n",
       "Q 2931 909 2931 1356 \r\n",
       "Q 2931 1769 2642 2001 \r\n",
       "Q 2353 2234 1838 2234 \r\n",
       "L 1294 2234 \r\n",
       "L 1294 2753 \r\n",
       "L 1863 2753 \r\n",
       "Q 2328 2753 2575 2939 \r\n",
       "Q 2822 3125 2822 3475 \r\n",
       "Q 2822 3834 2567 4026 \r\n",
       "Q 2313 4219 1838 4219 \r\n",
       "Q 1578 4219 1281 4162 \r\n",
       "Q 984 4106 628 3988 \r\n",
       "L 628 4550 \r\n",
       "Q 988 4650 1302 4700 \r\n",
       "Q 1616 4750 1894 4750 \r\n",
       "Q 2613 4750 3031 4423 \r\n",
       "Q 3450 4097 3450 3541 \r\n",
       "Q 3450 3153 3228 2886 \r\n",
       "Q 3006 2619 2597 2516 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 46.0125 226.893416 \r\n",
       "L 46.0125 9.453416 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 380.8125 226.893416 \r\n",
       "L 380.8125 9.453416 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 46.0125 226.893416 \r\n",
       "L 380.8125 226.893416 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path d=\"M 46.0125 9.453416 \r\n",
       "L 380.8125 9.453416 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p1bcbc15138\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"46.0125\" y=\"9.453416\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.zip_code.value_counts().plot(kind = 'bar', grid=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Channel**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"302.8525pt\" version=\"1.1\" viewBox=\"0 0 388.0125 302.8525\" width=\"388.0125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:08.889244</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 302.8525 \r\n",
       "L 388.0125 302.8525 \r\n",
       "L 388.0125 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "L 46.0125 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#pa65e1fece7)\" d=\"M 73.9125 224.64 \r\n",
       "L 129.7125 224.64 \r\n",
       "L 129.7125 17.554286 \r\n",
       "L 73.9125 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#pa65e1fece7)\" d=\"M 185.5125 224.64 \r\n",
       "L 241.3125 224.64 \r\n",
       "L 241.3125 18.992738 \r\n",
       "L 185.5125 18.992738 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#pa65e1fece7)\" d=\"M 297.1125 224.64 \r\n",
       "L 352.9125 224.64 \r\n",
       "L 352.9125 167.674365 \r\n",
       "L 297.1125 167.674365 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 101.8125 224.64 \r\n",
       "L 101.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 0 3.5 \r\n",
       "\" id=\"m7230ff6a18\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"101.8125\" xlink:href=\"#m7230ff6a18\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- Web -->\r\n",
       "      <g transform=\"translate(104.571875 253.441562)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 213 4666 \r\n",
       "L 850 4666 \r\n",
       "L 1831 722 \r\n",
       "L 2809 4666 \r\n",
       "L 3519 4666 \r\n",
       "L 4500 722 \r\n",
       "L 5478 4666 \r\n",
       "L 6119 4666 \r\n",
       "L 4947 0 \r\n",
       "L 4153 0 \r\n",
       "L 3169 4050 \r\n",
       "L 2175 0 \r\n",
       "L 1381 0 \r\n",
       "L 213 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-57\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3597 1894 \r\n",
       "L 3597 1613 \r\n",
       "L 953 1613 \r\n",
       "Q 991 1019 1311 708 \r\n",
       "Q 1631 397 2203 397 \r\n",
       "Q 2534 397 2845 478 \r\n",
       "Q 3156 559 3463 722 \r\n",
       "L 3463 178 \r\n",
       "Q 3153 47 2828 -22 \r\n",
       "Q 2503 -91 2169 -91 \r\n",
       "Q 1331 -91 842 396 \r\n",
       "Q 353 884 353 1716 \r\n",
       "Q 353 2575 817 3079 \r\n",
       "Q 1281 3584 2069 3584 \r\n",
       "Q 2775 3584 3186 3129 \r\n",
       "Q 3597 2675 3597 1894 \r\n",
       "z\r\n",
       "M 3022 2063 \r\n",
       "Q 3016 2534 2758 2815 \r\n",
       "Q 2500 3097 2075 3097 \r\n",
       "Q 1594 3097 1305 2825 \r\n",
       "Q 1016 2553 972 2059 \r\n",
       "L 3022 2063 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-65\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3116 1747 \r\n",
       "Q 3116 2381 2855 2742 \r\n",
       "Q 2594 3103 2138 3103 \r\n",
       "Q 1681 3103 1420 2742 \r\n",
       "Q 1159 2381 1159 1747 \r\n",
       "Q 1159 1113 1420 752 \r\n",
       "Q 1681 391 2138 391 \r\n",
       "Q 2594 391 2855 752 \r\n",
       "Q 3116 1113 3116 1747 \r\n",
       "z\r\n",
       "M 1159 2969 \r\n",
       "Q 1341 3281 1617 3432 \r\n",
       "Q 1894 3584 2278 3584 \r\n",
       "Q 2916 3584 3314 3078 \r\n",
       "Q 3713 2572 3713 1747 \r\n",
       "Q 3713 922 3314 415 \r\n",
       "Q 2916 -91 2278 -91 \r\n",
       "Q 1894 -91 1617 61 \r\n",
       "Q 1341 213 1159 525 \r\n",
       "L 1159 0 \r\n",
       "L 581 0 \r\n",
       "L 581 4863 \r\n",
       "L 1159 4863 \r\n",
       "L 1159 2969 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-62\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-57\"/>\r\n",
       "       <use x=\"93.001953\" xlink:href=\"#DejaVuSans-65\"/>\r\n",
       "       <use x=\"154.525391\" xlink:href=\"#DejaVuSans-62\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 213.4125 224.64 \r\n",
       "L 213.4125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"213.4125\" xlink:href=\"#m7230ff6a18\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- Phone -->\r\n",
       "      <g transform=\"translate(216.171875 262.616562)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1259 4147 \r\n",
       "L 1259 2394 \r\n",
       "L 2053 2394 \r\n",
       "Q 2494 2394 2734 2622 \r\n",
       "Q 2975 2850 2975 3272 \r\n",
       "Q 2975 3691 2734 3919 \r\n",
       "Q 2494 4147 2053 4147 \r\n",
       "L 1259 4147 \r\n",
       "z\r\n",
       "M 628 4666 \r\n",
       "L 2053 4666 \r\n",
       "Q 2838 4666 3239 4311 \r\n",
       "Q 3641 3956 3641 3272 \r\n",
       "Q 3641 2581 3239 2228 \r\n",
       "Q 2838 1875 2053 1875 \r\n",
       "L 1259 1875 \r\n",
       "L 1259 0 \r\n",
       "L 628 0 \r\n",
       "L 628 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-50\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3513 2113 \r\n",
       "L 3513 0 \r\n",
       "L 2938 0 \r\n",
       "L 2938 2094 \r\n",
       "Q 2938 2591 2744 2837 \r\n",
       "Q 2550 3084 2163 3084 \r\n",
       "Q 1697 3084 1428 2787 \r\n",
       "Q 1159 2491 1159 1978 \r\n",
       "L 1159 0 \r\n",
       "L 581 0 \r\n",
       "L 581 4863 \r\n",
       "L 1159 4863 \r\n",
       "L 1159 2956 \r\n",
       "Q 1366 3272 1645 3428 \r\n",
       "Q 1925 3584 2291 3584 \r\n",
       "Q 2894 3584 3203 3211 \r\n",
       "Q 3513 2838 3513 2113 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-68\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 1959 3097 \r\n",
       "Q 1497 3097 1228 2736 \r\n",
       "Q 959 2375 959 1747 \r\n",
       "Q 959 1119 1226 758 \r\n",
       "Q 1494 397 1959 397 \r\n",
       "Q 2419 397 2687 759 \r\n",
       "Q 2956 1122 2956 1747 \r\n",
       "Q 2956 2369 2687 2733 \r\n",
       "Q 2419 3097 1959 3097 \r\n",
       "z\r\n",
       "M 1959 3584 \r\n",
       "Q 2709 3584 3137 3096 \r\n",
       "Q 3566 2609 3566 1747 \r\n",
       "Q 3566 888 3137 398 \r\n",
       "Q 2709 -91 1959 -91 \r\n",
       "Q 1206 -91 779 398 \r\n",
       "Q 353 888 353 1747 \r\n",
       "Q 353 2609 779 3096 \r\n",
       "Q 1206 3584 1959 3584 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-6f\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3513 2113 \r\n",
       "L 3513 0 \r\n",
       "L 2938 0 \r\n",
       "L 2938 2094 \r\n",
       "Q 2938 2591 2744 2837 \r\n",
       "Q 2550 3084 2163 3084 \r\n",
       "Q 1697 3084 1428 2787 \r\n",
       "Q 1159 2491 1159 1978 \r\n",
       "L 1159 0 \r\n",
       "L 581 0 \r\n",
       "L 581 3500 \r\n",
       "L 1159 3500 \r\n",
       "L 1159 2956 \r\n",
       "Q 1366 3272 1645 3428 \r\n",
       "Q 1925 3584 2291 3584 \r\n",
       "Q 2894 3584 3203 3211 \r\n",
       "Q 3513 2838 3513 2113 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-6e\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-50\"/>\r\n",
       "       <use x=\"60.302734\" xlink:href=\"#DejaVuSans-68\"/>\r\n",
       "       <use x=\"123.681641\" xlink:href=\"#DejaVuSans-6f\"/>\r\n",
       "       <use x=\"184.863281\" xlink:href=\"#DejaVuSans-6e\"/>\r\n",
       "       <use x=\"248.242188\" xlink:href=\"#DejaVuSans-65\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 325.0125 224.64 \r\n",
       "L 325.0125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"325.0125\" xlink:href=\"#m7230ff6a18\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- Multichannel -->\r\n",
       "      <g transform=\"translate(327.771875 295.6525)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 628 4666 \r\n",
       "L 1569 4666 \r\n",
       "L 2759 1491 \r\n",
       "L 3956 4666 \r\n",
       "L 4897 4666 \r\n",
       "L 4897 0 \r\n",
       "L 4281 0 \r\n",
       "L 4281 4097 \r\n",
       "L 3078 897 \r\n",
       "L 2444 897 \r\n",
       "L 1241 4097 \r\n",
       "L 1241 0 \r\n",
       "L 628 0 \r\n",
       "L 628 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-4d\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 544 1381 \r\n",
       "L 544 3500 \r\n",
       "L 1119 3500 \r\n",
       "L 1119 1403 \r\n",
       "Q 1119 906 1312 657 \r\n",
       "Q 1506 409 1894 409 \r\n",
       "Q 2359 409 2629 706 \r\n",
       "Q 2900 1003 2900 1516 \r\n",
       "L 2900 3500 \r\n",
       "L 3475 3500 \r\n",
       "L 3475 0 \r\n",
       "L 2900 0 \r\n",
       "L 2900 538 \r\n",
       "Q 2691 219 2414 64 \r\n",
       "Q 2138 -91 1772 -91 \r\n",
       "Q 1169 -91 856 284 \r\n",
       "Q 544 659 544 1381 \r\n",
       "z\r\n",
       "M 1991 3584 \r\n",
       "L 1991 3584 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-75\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 603 4863 \r\n",
       "L 1178 4863 \r\n",
       "L 1178 0 \r\n",
       "L 603 0 \r\n",
       "L 603 4863 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-6c\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 1172 4494 \r\n",
       "L 1172 3500 \r\n",
       "L 2356 3500 \r\n",
       "L 2356 3053 \r\n",
       "L 1172 3053 \r\n",
       "L 1172 1153 \r\n",
       "Q 1172 725 1289 603 \r\n",
       "Q 1406 481 1766 481 \r\n",
       "L 2356 481 \r\n",
       "L 2356 0 \r\n",
       "L 1766 0 \r\n",
       "Q 1100 0 847 248 \r\n",
       "Q 594 497 594 1153 \r\n",
       "L 594 3053 \r\n",
       "L 172 3053 \r\n",
       "L 172 3500 \r\n",
       "L 594 3500 \r\n",
       "L 594 4494 \r\n",
       "L 1172 4494 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-74\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 603 3500 \r\n",
       "L 1178 3500 \r\n",
       "L 1178 0 \r\n",
       "L 603 0 \r\n",
       "L 603 3500 \r\n",
       "z\r\n",
       "M 603 4863 \r\n",
       "L 1178 4863 \r\n",
       "L 1178 4134 \r\n",
       "L 603 4134 \r\n",
       "L 603 4863 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-69\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 3122 3366 \r\n",
       "L 3122 2828 \r\n",
       "Q 2878 2963 2633 3030 \r\n",
       "Q 2388 3097 2138 3097 \r\n",
       "Q 1578 3097 1268 2742 \r\n",
       "Q 959 2388 959 1747 \r\n",
       "Q 959 1106 1268 751 \r\n",
       "Q 1578 397 2138 397 \r\n",
       "Q 2388 397 2633 464 \r\n",
       "Q 2878 531 3122 666 \r\n",
       "L 3122 134 \r\n",
       "Q 2881 22 2623 -34 \r\n",
       "Q 2366 -91 2075 -91 \r\n",
       "Q 1284 -91 818 406 \r\n",
       "Q 353 903 353 1747 \r\n",
       "Q 353 2603 823 3093 \r\n",
       "Q 1294 3584 2113 3584 \r\n",
       "Q 2378 3584 2631 3529 \r\n",
       "Q 2884 3475 3122 3366 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-63\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2194 1759 \r\n",
       "Q 1497 1759 1228 1600 \r\n",
       "Q 959 1441 959 1056 \r\n",
       "Q 959 750 1161 570 \r\n",
       "Q 1363 391 1709 391 \r\n",
       "Q 2188 391 2477 730 \r\n",
       "Q 2766 1069 2766 1631 \r\n",
       "L 2766 1759 \r\n",
       "L 2194 1759 \r\n",
       "z\r\n",
       "M 3341 1997 \r\n",
       "L 3341 0 \r\n",
       "L 2766 0 \r\n",
       "L 2766 531 \r\n",
       "Q 2569 213 2275 61 \r\n",
       "Q 1981 -91 1556 -91 \r\n",
       "Q 1019 -91 701 211 \r\n",
       "Q 384 513 384 1019 \r\n",
       "Q 384 1609 779 1909 \r\n",
       "Q 1175 2209 1959 2209 \r\n",
       "L 2766 2209 \r\n",
       "L 2766 2266 \r\n",
       "Q 2766 2663 2505 2880 \r\n",
       "Q 2244 3097 1772 3097 \r\n",
       "Q 1472 3097 1187 3025 \r\n",
       "Q 903 2953 641 2809 \r\n",
       "L 641 3341 \r\n",
       "Q 956 3463 1253 3523 \r\n",
       "Q 1550 3584 1831 3584 \r\n",
       "Q 2591 3584 2966 3190 \r\n",
       "Q 3341 2797 3341 1997 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-61\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-4d\"/>\r\n",
       "       <use x=\"86.279297\" xlink:href=\"#DejaVuSans-75\"/>\r\n",
       "       <use x=\"149.658203\" xlink:href=\"#DejaVuSans-6c\"/>\r\n",
       "       <use x=\"177.441406\" xlink:href=\"#DejaVuSans-74\"/>\r\n",
       "       <use x=\"216.650391\" xlink:href=\"#DejaVuSans-69\"/>\r\n",
       "       <use x=\"244.433594\" xlink:href=\"#DejaVuSans-63\"/>\r\n",
       "       <use x=\"299.414062\" xlink:href=\"#DejaVuSans-68\"/>\r\n",
       "       <use x=\"362.792969\" xlink:href=\"#DejaVuSans-61\"/>\r\n",
       "       <use x=\"424.072266\" xlink:href=\"#DejaVuSans-6e\"/>\r\n",
       "       <use x=\"487.451172\" xlink:href=\"#DejaVuSans-6e\"/>\r\n",
       "       <use x=\"550.830078\" xlink:href=\"#DejaVuSans-65\"/>\r\n",
       "       <use x=\"612.353516\" xlink:href=\"#DejaVuSans-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L -3.5 0 \r\n",
       "\" id=\"mc6cab123c7\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mc6cab123c7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(32.65 228.439219)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2034 4250 \r\n",
       "Q 1547 4250 1301 3770 \r\n",
       "Q 1056 3291 1056 2328 \r\n",
       "Q 1056 1369 1301 889 \r\n",
       "Q 1547 409 2034 409 \r\n",
       "Q 2525 409 2770 889 \r\n",
       "Q 3016 1369 3016 2328 \r\n",
       "Q 3016 3291 2770 3770 \r\n",
       "Q 2525 4250 2034 4250 \r\n",
       "z\r\n",
       "M 2034 4750 \r\n",
       "Q 2819 4750 3233 4129 \r\n",
       "Q 3647 3509 3647 2328 \r\n",
       "Q 3647 1150 3233 529 \r\n",
       "Q 2819 -91 2034 -91 \r\n",
       "Q 1250 -91 836 529 \r\n",
       "Q 422 1150 422 2328 \r\n",
       "Q 422 3509 836 4129 \r\n",
       "Q 1250 4750 2034 4750 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 46.0125 187.944796 \r\n",
       "L 380.8125 187.944796 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mc6cab123c7\" y=\"187.944796\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g transform=\"translate(13.5625 191.744015)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 691 4666 \r\n",
       "L 3169 4666 \r\n",
       "L 3169 4134 \r\n",
       "L 1269 4134 \r\n",
       "L 1269 2991 \r\n",
       "Q 1406 3038 1543 3061 \r\n",
       "Q 1681 3084 1819 3084 \r\n",
       "Q 2600 3084 3056 2656 \r\n",
       "Q 3513 2228 3513 1497 \r\n",
       "Q 3513 744 3044 326 \r\n",
       "Q 2575 -91 1722 -91 \r\n",
       "Q 1428 -91 1123 -41 \r\n",
       "Q 819 9 494 109 \r\n",
       "L 494 744 \r\n",
       "Q 775 591 1075 516 \r\n",
       "Q 1375 441 1709 441 \r\n",
       "Q 2250 441 2565 725 \r\n",
       "Q 2881 1009 2881 1497 \r\n",
       "Q 2881 1984 2565 2268 \r\n",
       "Q 2250 2553 1709 2553 \r\n",
       "Q 1456 2553 1204 2497 \r\n",
       "Q 953 2441 691 2322 \r\n",
       "L 691 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 46.0125 151.249592 \r\n",
       "L 380.8125 151.249592 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mc6cab123c7\" y=\"151.249592\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g transform=\"translate(7.2 155.048811)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 794 531 \r\n",
       "L 1825 531 \r\n",
       "L 1825 4091 \r\n",
       "L 703 3866 \r\n",
       "L 703 4441 \r\n",
       "L 1819 4666 \r\n",
       "L 2450 4666 \r\n",
       "L 2450 531 \r\n",
       "L 3481 531 \r\n",
       "L 3481 0 \r\n",
       "L 794 0 \r\n",
       "L 794 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 46.0125 114.554388 \r\n",
       "L 380.8125 114.554388 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mc6cab123c7\" y=\"114.554388\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g transform=\"translate(7.2 118.353607)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 46.0125 77.859184 \r\n",
       "L 380.8125 77.859184 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mc6cab123c7\" y=\"77.859184\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g transform=\"translate(7.2 81.658403)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1228 531 \r\n",
       "L 3431 531 \r\n",
       "L 3431 0 \r\n",
       "L 469 0 \r\n",
       "L 469 531 \r\n",
       "Q 828 903 1448 1529 \r\n",
       "Q 2069 2156 2228 2338 \r\n",
       "Q 2531 2678 2651 2914 \r\n",
       "Q 2772 3150 2772 3378 \r\n",
       "Q 2772 3750 2511 3984 \r\n",
       "Q 2250 4219 1831 4219 \r\n",
       "Q 1534 4219 1204 4116 \r\n",
       "Q 875 4013 500 3803 \r\n",
       "L 500 4441 \r\n",
       "Q 881 4594 1212 4672 \r\n",
       "Q 1544 4750 1819 4750 \r\n",
       "Q 2544 4750 2975 4387 \r\n",
       "Q 3406 4025 3406 3419 \r\n",
       "Q 3406 3131 3298 2873 \r\n",
       "Q 3191 2616 2906 2266 \r\n",
       "Q 2828 2175 2409 1742 \r\n",
       "Q 1991 1309 1228 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_17\">\r\n",
       "      <path clip-path=\"url(#pa65e1fece7)\" d=\"M 46.0125 41.16398 \r\n",
       "L 380.8125 41.16398 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_18\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mc6cab123c7\" y=\"41.16398\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g transform=\"translate(7.2 44.963199)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 46.0125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path d=\"M 46.0125 7.2 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"pa65e1fece7\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"46.0125\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.channel.value_counts().plot(kind = 'bar', grid=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**History segment**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"312.34pt\" version=\"1.1\" viewBox=\"0 0 388.0125 312.34\" width=\"388.0125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:17.519366</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 312.34 \r\n",
       "L 388.0125 312.34 \r\n",
       "L 388.0125 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "L 46.0125 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 57.969643 224.64 \r\n",
       "L 81.883929 224.64 \r\n",
       "L 81.883929 17.554286 \r\n",
       "L 57.969643 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 105.798214 224.64 \r\n",
       "L 129.7125 224.64 \r\n",
       "L 129.7125 96.133262 \r\n",
       "L 105.798214 96.133262 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 153.626786 224.64 \r\n",
       "L 177.541071 224.64 \r\n",
       "L 177.541071 113.848692 \r\n",
       "L 153.626786 113.848692 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 201.455357 224.64 \r\n",
       "L 225.369643 224.64 \r\n",
       "L 225.369643 166.85975 \r\n",
       "L 201.455357 166.85975 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 249.283929 224.64 \r\n",
       "L 273.198214 224.64 \r\n",
       "L 273.198214 180.364948 \r\n",
       "L 249.283929 180.364948 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 297.1125 224.64 \r\n",
       "L 321.026786 224.64 \r\n",
       "L 321.026786 207.880211 \r\n",
       "L 297.1125 207.880211 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 344.941071 224.64 \r\n",
       "L 368.855357 224.64 \r\n",
       "L 368.855357 212.847744 \r\n",
       "L 344.941071 212.847744 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 69.926786 224.64 \r\n",
       "L 69.926786 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 0 3.5 \r\n",
       "\" id=\"me0fec89be7\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"69.926786\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 1) $0 - $100 -->\r\n",
       "      <g transform=\"translate(72.686161 282.84)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 794 531 \r\n",
       "L 1825 531 \r\n",
       "L 1825 4091 \r\n",
       "L 703 3866 \r\n",
       "L 703 4441 \r\n",
       "L 1819 4666 \r\n",
       "L 2450 4666 \r\n",
       "L 2450 531 \r\n",
       "L 3481 531 \r\n",
       "L 3481 0 \r\n",
       "L 794 0 \r\n",
       "L 794 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 513 4856 \r\n",
       "L 1013 4856 \r\n",
       "Q 1481 4119 1714 3412 \r\n",
       "Q 1947 2706 1947 2009 \r\n",
       "Q 1947 1309 1714 600 \r\n",
       "Q 1481 -109 1013 -844 \r\n",
       "L 513 -844 \r\n",
       "Q 928 -128 1133 580 \r\n",
       "Q 1338 1288 1338 2009 \r\n",
       "Q 1338 2731 1133 3434 \r\n",
       "Q 928 4138 513 4856 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-29\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path id=\"DejaVuSans-20\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2034 4250 \r\n",
       "Q 1547 4250 1301 3770 \r\n",
       "Q 1056 3291 1056 2328 \r\n",
       "Q 1056 1369 1301 889 \r\n",
       "Q 1547 409 2034 409 \r\n",
       "Q 2525 409 2770 889 \r\n",
       "Q 3016 1369 3016 2328 \r\n",
       "Q 3016 3291 2770 3770 \r\n",
       "Q 2525 4250 2034 4250 \r\n",
       "z\r\n",
       "M 2034 4750 \r\n",
       "Q 2819 4750 3233 4129 \r\n",
       "Q 3647 3509 3647 2328 \r\n",
       "Q 3647 1150 3233 529 \r\n",
       "Q 2819 -91 2034 -91 \r\n",
       "Q 1250 -91 836 529 \r\n",
       "Q 422 1150 422 2328 \r\n",
       "Q 422 3509 836 4129 \r\n",
       "Q 1250 4750 2034 4750 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 678 2272 \r\n",
       "L 4684 2272 \r\n",
       "L 4684 1741 \r\n",
       "L 678 1741 \r\n",
       "L 678 2272 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-2212\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(217.529297 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(320.800781 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(384.423828 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 117.755357 224.64 \r\n",
       "L 117.755357 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"117.755357\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 2) $100 - $200 -->\r\n",
       "      <g transform=\"translate(120.514732 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1228 531 \r\n",
       "L 3431 531 \r\n",
       "L 3431 0 \r\n",
       "L 469 0 \r\n",
       "L 469 531 \r\n",
       "Q 828 903 1448 1529 \r\n",
       "Q 2069 2156 2228 2338 \r\n",
       "Q 2531 2678 2651 2914 \r\n",
       "Q 2772 3150 2772 3378 \r\n",
       "Q 2772 3750 2511 3984 \r\n",
       "Q 2250 4219 1831 4219 \r\n",
       "Q 1534 4219 1204 4116 \r\n",
       "Q 875 4013 500 3803 \r\n",
       "L 500 4441 \r\n",
       "Q 881 4594 1212 4672 \r\n",
       "Q 1544 4750 1819 4750 \r\n",
       "Q 2544 4750 2975 4387 \r\n",
       "Q 3406 4025 3406 3419 \r\n",
       "Q 3406 3131 3298 2873 \r\n",
       "Q 3191 2616 2906 2266 \r\n",
       "Q 2828 2175 2409 1742 \r\n",
       "Q 1991 1309 1228 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 165.583929 224.64 \r\n",
       "L 165.583929 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"165.583929\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 3) $200 - $350 -->\r\n",
       "      <g transform=\"translate(168.343304 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2597 2516 \r\n",
       "Q 3050 2419 3304 2112 \r\n",
       "Q 3559 1806 3559 1356 \r\n",
       "Q 3559 666 3084 287 \r\n",
       "Q 2609 -91 1734 -91 \r\n",
       "Q 1441 -91 1130 -33 \r\n",
       "Q 819 25 488 141 \r\n",
       "L 488 750 \r\n",
       "Q 750 597 1062 519 \r\n",
       "Q 1375 441 1716 441 \r\n",
       "Q 2309 441 2620 675 \r\n",
       "Q 2931 909 2931 1356 \r\n",
       "Q 2931 1769 2642 2001 \r\n",
       "Q 2353 2234 1838 2234 \r\n",
       "L 1294 2234 \r\n",
       "L 1294 2753 \r\n",
       "L 1863 2753 \r\n",
       "Q 2328 2753 2575 2939 \r\n",
       "Q 2822 3125 2822 3475 \r\n",
       "Q 2822 3834 2567 4026 \r\n",
       "Q 2313 4219 1838 4219 \r\n",
       "Q 1578 4219 1281 4162 \r\n",
       "Q 984 4106 628 3988 \r\n",
       "L 628 4550 \r\n",
       "Q 988 4650 1302 4700 \r\n",
       "Q 1616 4750 1894 4750 \r\n",
       "Q 2613 4750 3031 4423 \r\n",
       "Q 3450 4097 3450 3541 \r\n",
       "Q 3450 3153 3228 2886 \r\n",
       "Q 3006 2619 2597 2516 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-33\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 691 4666 \r\n",
       "L 3169 4666 \r\n",
       "L 3169 4134 \r\n",
       "L 1269 4134 \r\n",
       "L 1269 2991 \r\n",
       "Q 1406 3038 1543 3061 \r\n",
       "Q 1681 3084 1819 3084 \r\n",
       "Q 2600 3084 3056 2656 \r\n",
       "Q 3513 2228 3513 1497 \r\n",
       "Q 3513 744 3044 326 \r\n",
       "Q 2575 -91 1722 -91 \r\n",
       "Q 1428 -91 1123 -41 \r\n",
       "Q 819 9 494 109 \r\n",
       "L 494 744 \r\n",
       "Q 775 591 1075 516 \r\n",
       "Q 1375 441 1709 441 \r\n",
       "Q 2250 441 2565 725 \r\n",
       "Q 2881 1009 2881 1497 \r\n",
       "Q 2881 1984 2565 2268 \r\n",
       "Q 2250 2553 1709 2553 \r\n",
       "Q 1456 2553 1204 2497 \r\n",
       "Q 953 2441 691 2322 \r\n",
       "L 691 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_4\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 213.4125 224.64 \r\n",
       "L 213.4125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"213.4125\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 4) $350 - $500 -->\r\n",
       "      <g transform=\"translate(216.171875 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2419 4116 \r\n",
       "L 825 1625 \r\n",
       "L 2419 1625 \r\n",
       "L 2419 4116 \r\n",
       "z\r\n",
       "M 2253 4666 \r\n",
       "L 3047 4666 \r\n",
       "L 3047 1625 \r\n",
       "L 3713 1625 \r\n",
       "L 3713 1100 \r\n",
       "L 3047 1100 \r\n",
       "L 3047 0 \r\n",
       "L 2419 0 \r\n",
       "L 2419 1100 \r\n",
       "L 313 1100 \r\n",
       "L 313 1709 \r\n",
       "L 2253 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-34\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_5\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 261.241071 224.64 \r\n",
       "L 261.241071 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"261.241071\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 5) $500 - $750 -->\r\n",
       "      <g transform=\"translate(264.000446 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 525 4666 \r\n",
       "L 3525 4666 \r\n",
       "L 3525 4397 \r\n",
       "L 1831 0 \r\n",
       "L 1172 0 \r\n",
       "L 2766 4134 \r\n",
       "L 525 4134 \r\n",
       "L 525 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-37\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-37\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_6\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 309.069643 224.64 \r\n",
       "L 309.069643 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"309.069643\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 6) $750 - $1,000 -->\r\n",
       "      <g transform=\"translate(311.829018 305.14)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2113 2584 \r\n",
       "Q 1688 2584 1439 2293 \r\n",
       "Q 1191 2003 1191 1497 \r\n",
       "Q 1191 994 1439 701 \r\n",
       "Q 1688 409 2113 409 \r\n",
       "Q 2538 409 2786 701 \r\n",
       "Q 3034 994 3034 1497 \r\n",
       "Q 3034 2003 2786 2293 \r\n",
       "Q 2538 2584 2113 2584 \r\n",
       "z\r\n",
       "M 3366 4563 \r\n",
       "L 3366 3988 \r\n",
       "Q 3128 4100 2886 4159 \r\n",
       "Q 2644 4219 2406 4219 \r\n",
       "Q 1781 4219 1451 3797 \r\n",
       "Q 1122 3375 1075 2522 \r\n",
       "Q 1259 2794 1537 2939 \r\n",
       "Q 1816 3084 2150 3084 \r\n",
       "Q 2853 3084 3261 2657 \r\n",
       "Q 3669 2231 3669 1497 \r\n",
       "Q 3669 778 3244 343 \r\n",
       "Q 2819 -91 2113 -91 \r\n",
       "Q 1303 -91 875 529 \r\n",
       "Q 447 1150 447 2328 \r\n",
       "Q 447 3434 972 4092 \r\n",
       "Q 1497 4750 2381 4750 \r\n",
       "Q 2619 4750 2861 4703 \r\n",
       "Q 3103 4656 3366 4563 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-36\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 750 794 \r\n",
       "L 1409 794 \r\n",
       "L 1409 256 \r\n",
       "L 897 -744 \r\n",
       "L 494 -744 \r\n",
       "L 750 256 \r\n",
       "L 750 794 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-2c\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-36\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-37\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-2c\"/>\r\n",
       "       <use transform=\"translate(543.457031 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(607.080078 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(670.703125 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_7\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 356.898214 224.64 \r\n",
       "L 356.898214 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"356.898214\" xlink:href=\"#me0fec89be7\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 7) $1,000 + -->\r\n",
       "      <g transform=\"translate(359.657589 291.630625)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2163 -941 \r\n",
       "L 1850 -941 \r\n",
       "L 1847 0 \r\n",
       "Q 1519 6 1191 76 \r\n",
       "Q 863 147 531 288 \r\n",
       "L 531 850 \r\n",
       "Q 850 650 1176 548 \r\n",
       "Q 1503 447 1850 444 \r\n",
       "L 1850 1869 \r\n",
       "Q 1159 1981 845 2250 \r\n",
       "Q 531 2519 531 2988 \r\n",
       "Q 531 3497 872 3790 \r\n",
       "Q 1213 4084 1850 4128 \r\n",
       "L 1850 4863 \r\n",
       "L 2163 4863 \r\n",
       "L 2163 4138 \r\n",
       "Q 2453 4125 2725 4076 \r\n",
       "Q 2997 4028 3256 3944 \r\n",
       "L 3256 3397 \r\n",
       "Q 2997 3528 2723 3600 \r\n",
       "Q 2450 3672 2163 3684 \r\n",
       "L 2163 2350 \r\n",
       "Q 2872 2241 3206 1959 \r\n",
       "Q 3541 1678 3541 1191 \r\n",
       "Q 3541 663 3186 358 \r\n",
       "Q 2831 53 2163 6 \r\n",
       "L 2163 -941 \r\n",
       "z\r\n",
       "M 1850 2406 \r\n",
       "L 1850 3688 \r\n",
       "Q 1488 3647 1297 3481 \r\n",
       "Q 1106 3316 1106 3041 \r\n",
       "Q 1106 2772 1282 2622 \r\n",
       "Q 1459 2472 1850 2406 \r\n",
       "z\r\n",
       "M 2163 1806 \r\n",
       "L 2163 453 \r\n",
       "Q 2559 506 2761 678 \r\n",
       "Q 2963 850 2963 1131 \r\n",
       "Q 2963 1406 2770 1568 \r\n",
       "Q 2578 1731 2163 1806 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-24\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2944 4013 \r\n",
       "L 2944 2272 \r\n",
       "L 4684 2272 \r\n",
       "L 4684 1741 \r\n",
       "L 2944 1741 \r\n",
       "L 2944 0 \r\n",
       "L 2419 0 \r\n",
       "L 2419 1741 \r\n",
       "L 678 1741 \r\n",
       "L 678 2272 \r\n",
       "L 2419 2272 \r\n",
       "L 2419 4013 \r\n",
       "L 2944 4013 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-2b\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-37\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use x=\"102.636719\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use x=\"134.423828\" xlink:href=\"#DejaVuSans-24\"/>\r\n",
       "       <use x=\"198.046875\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"261.669922\" xlink:href=\"#DejaVuSans-2c\"/>\r\n",
       "       <use x=\"293.457031\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"357.080078\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"420.703125\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"484.326172\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use x=\"516.113281\" xlink:href=\"#DejaVuSans-2b\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L -3.5 0 \r\n",
       "\" id=\"m85031e9af2\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m85031e9af2\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(32.65 228.439219)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_17\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 46.0125 179.56257 \r\n",
       "L 380.8125 179.56257 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_18\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m85031e9af2\" y=\"179.56257\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g transform=\"translate(13.5625 183.361789)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_19\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 46.0125 134.48514 \r\n",
       "L 380.8125 134.48514 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_20\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m85031e9af2\" y=\"134.48514\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g transform=\"translate(7.2 138.284358)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_21\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 46.0125 89.407709 \r\n",
       "L 380.8125 89.407709 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_22\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m85031e9af2\" y=\"89.407709\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g transform=\"translate(7.2 93.206928)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_23\">\r\n",
       "      <path clip-path=\"url(#p91ec2ffd3a)\" d=\"M 46.0125 44.330279 \r\n",
       "L 380.8125 44.330279 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_24\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m85031e9af2\" y=\"44.330279\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_12\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g transform=\"translate(7.2 48.129498)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_10\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 46.0125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_11\">\r\n",
       "    <path d=\"M 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_12\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_13\">\r\n",
       "    <path d=\"M 46.0125 7.2 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p91ec2ffd3a\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"46.0125\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.history_segment.value_counts().plot(kind = 'bar', grid=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "#As option I propose to apply following function for transformation data in column \"historic_segment\"\n",
    "def historic_segment_transform(dataset):\n",
    "    for payment in dataset.data['history_segment'].unique(): \n",
    "        if payment =='1) $0 - $100':\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 50\n",
    "        elif payment =='2) $100 - $200':\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 150\n",
    "        elif payment =='3) $200 - $350':\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 275\n",
    "        elif payment =='4) $350 - $500':\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 425\n",
    "        elif payment =='5) $500 - $750':\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 575\n",
    "        elif payment =='5) $750 - $1000':\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 825\n",
    "        else:\n",
    "            dataset.data.loc[dataset.data['history_segment'] == payment, 'history_segment'] = 1000\n",
    "    return dataset.data.history_segment"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1) $0 - $100        22970\n",
       "2) $100 - $200      14254\n",
       "3) $200 - $350      12289\n",
       "4) $350 - $500       6409\n",
       "5) $500 - $750       4911\n",
       "6) $750 - $1,000     1859\n",
       "7) $1,000 +          1308\n",
       "Name: history_segment, dtype: int64"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.history_segment.value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"312.34pt\" version=\"1.1\" viewBox=\"0 0 388.0125 312.34\" width=\"388.0125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:21.215294</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 312.34 \r\n",
       "L 388.0125 312.34 \r\n",
       "L 388.0125 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "L 46.0125 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 57.969643 224.64 \r\n",
       "L 81.883929 224.64 \r\n",
       "L 81.883929 17.554286 \r\n",
       "L 57.969643 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 105.798214 224.64 \r\n",
       "L 129.7125 224.64 \r\n",
       "L 129.7125 96.133262 \r\n",
       "L 105.798214 96.133262 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 153.626786 224.64 \r\n",
       "L 177.541071 224.64 \r\n",
       "L 177.541071 113.848692 \r\n",
       "L 153.626786 113.848692 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 201.455357 224.64 \r\n",
       "L 225.369643 224.64 \r\n",
       "L 225.369643 166.85975 \r\n",
       "L 201.455357 166.85975 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 249.283929 224.64 \r\n",
       "L 273.198214 224.64 \r\n",
       "L 273.198214 180.364948 \r\n",
       "L 249.283929 180.364948 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 297.1125 224.64 \r\n",
       "L 321.026786 224.64 \r\n",
       "L 321.026786 207.880211 \r\n",
       "L 297.1125 207.880211 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 344.941071 224.64 \r\n",
       "L 368.855357 224.64 \r\n",
       "L 368.855357 212.847744 \r\n",
       "L 344.941071 212.847744 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 69.926786 224.64 \r\n",
       "L 69.926786 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 0 3.5 \r\n",
       "\" id=\"m4d4b83241f\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"69.926786\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 1) $0 - $100 -->\r\n",
       "      <g transform=\"translate(72.686161 282.84)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 794 531 \r\n",
       "L 1825 531 \r\n",
       "L 1825 4091 \r\n",
       "L 703 3866 \r\n",
       "L 703 4441 \r\n",
       "L 1819 4666 \r\n",
       "L 2450 4666 \r\n",
       "L 2450 531 \r\n",
       "L 3481 531 \r\n",
       "L 3481 0 \r\n",
       "L 794 0 \r\n",
       "L 794 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 513 4856 \r\n",
       "L 1013 4856 \r\n",
       "Q 1481 4119 1714 3412 \r\n",
       "Q 1947 2706 1947 2009 \r\n",
       "Q 1947 1309 1714 600 \r\n",
       "Q 1481 -109 1013 -844 \r\n",
       "L 513 -844 \r\n",
       "Q 928 -128 1133 580 \r\n",
       "Q 1338 1288 1338 2009 \r\n",
       "Q 1338 2731 1133 3434 \r\n",
       "Q 928 4138 513 4856 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-29\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path id=\"DejaVuSans-20\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2034 4250 \r\n",
       "Q 1547 4250 1301 3770 \r\n",
       "Q 1056 3291 1056 2328 \r\n",
       "Q 1056 1369 1301 889 \r\n",
       "Q 1547 409 2034 409 \r\n",
       "Q 2525 409 2770 889 \r\n",
       "Q 3016 1369 3016 2328 \r\n",
       "Q 3016 3291 2770 3770 \r\n",
       "Q 2525 4250 2034 4250 \r\n",
       "z\r\n",
       "M 2034 4750 \r\n",
       "Q 2819 4750 3233 4129 \r\n",
       "Q 3647 3509 3647 2328 \r\n",
       "Q 3647 1150 3233 529 \r\n",
       "Q 2819 -91 2034 -91 \r\n",
       "Q 1250 -91 836 529 \r\n",
       "Q 422 1150 422 2328 \r\n",
       "Q 422 3509 836 4129 \r\n",
       "Q 1250 4750 2034 4750 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 678 2272 \r\n",
       "L 4684 2272 \r\n",
       "L 4684 1741 \r\n",
       "L 678 1741 \r\n",
       "L 678 2272 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-2212\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(217.529297 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(320.800781 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(384.423828 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 117.755357 224.64 \r\n",
       "L 117.755357 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"117.755357\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 2) $100 - $200 -->\r\n",
       "      <g transform=\"translate(120.514732 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1228 531 \r\n",
       "L 3431 531 \r\n",
       "L 3431 0 \r\n",
       "L 469 0 \r\n",
       "L 469 531 \r\n",
       "Q 828 903 1448 1529 \r\n",
       "Q 2069 2156 2228 2338 \r\n",
       "Q 2531 2678 2651 2914 \r\n",
       "Q 2772 3150 2772 3378 \r\n",
       "Q 2772 3750 2511 3984 \r\n",
       "Q 2250 4219 1831 4219 \r\n",
       "Q 1534 4219 1204 4116 \r\n",
       "Q 875 4013 500 3803 \r\n",
       "L 500 4441 \r\n",
       "Q 881 4594 1212 4672 \r\n",
       "Q 1544 4750 1819 4750 \r\n",
       "Q 2544 4750 2975 4387 \r\n",
       "Q 3406 4025 3406 3419 \r\n",
       "Q 3406 3131 3298 2873 \r\n",
       "Q 3191 2616 2906 2266 \r\n",
       "Q 2828 2175 2409 1742 \r\n",
       "Q 1991 1309 1228 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 165.583929 224.64 \r\n",
       "L 165.583929 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"165.583929\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 3) $200 - $350 -->\r\n",
       "      <g transform=\"translate(168.343304 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2597 2516 \r\n",
       "Q 3050 2419 3304 2112 \r\n",
       "Q 3559 1806 3559 1356 \r\n",
       "Q 3559 666 3084 287 \r\n",
       "Q 2609 -91 1734 -91 \r\n",
       "Q 1441 -91 1130 -33 \r\n",
       "Q 819 25 488 141 \r\n",
       "L 488 750 \r\n",
       "Q 750 597 1062 519 \r\n",
       "Q 1375 441 1716 441 \r\n",
       "Q 2309 441 2620 675 \r\n",
       "Q 2931 909 2931 1356 \r\n",
       "Q 2931 1769 2642 2001 \r\n",
       "Q 2353 2234 1838 2234 \r\n",
       "L 1294 2234 \r\n",
       "L 1294 2753 \r\n",
       "L 1863 2753 \r\n",
       "Q 2328 2753 2575 2939 \r\n",
       "Q 2822 3125 2822 3475 \r\n",
       "Q 2822 3834 2567 4026 \r\n",
       "Q 2313 4219 1838 4219 \r\n",
       "Q 1578 4219 1281 4162 \r\n",
       "Q 984 4106 628 3988 \r\n",
       "L 628 4550 \r\n",
       "Q 988 4650 1302 4700 \r\n",
       "Q 1616 4750 1894 4750 \r\n",
       "Q 2613 4750 3031 4423 \r\n",
       "Q 3450 4097 3450 3541 \r\n",
       "Q 3450 3153 3228 2886 \r\n",
       "Q 3006 2619 2597 2516 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-33\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 691 4666 \r\n",
       "L 3169 4666 \r\n",
       "L 3169 4134 \r\n",
       "L 1269 4134 \r\n",
       "L 1269 2991 \r\n",
       "Q 1406 3038 1543 3061 \r\n",
       "Q 1681 3084 1819 3084 \r\n",
       "Q 2600 3084 3056 2656 \r\n",
       "Q 3513 2228 3513 1497 \r\n",
       "Q 3513 744 3044 326 \r\n",
       "Q 2575 -91 1722 -91 \r\n",
       "Q 1428 -91 1123 -41 \r\n",
       "Q 819 9 494 109 \r\n",
       "L 494 744 \r\n",
       "Q 775 591 1075 516 \r\n",
       "Q 1375 441 1709 441 \r\n",
       "Q 2250 441 2565 725 \r\n",
       "Q 2881 1009 2881 1497 \r\n",
       "Q 2881 1984 2565 2268 \r\n",
       "Q 2250 2553 1709 2553 \r\n",
       "Q 1456 2553 1204 2497 \r\n",
       "Q 953 2441 691 2322 \r\n",
       "L 691 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_4\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 213.4125 224.64 \r\n",
       "L 213.4125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"213.4125\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 4) $350 - $500 -->\r\n",
       "      <g transform=\"translate(216.171875 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2419 4116 \r\n",
       "L 825 1625 \r\n",
       "L 2419 1625 \r\n",
       "L 2419 4116 \r\n",
       "z\r\n",
       "M 2253 4666 \r\n",
       "L 3047 4666 \r\n",
       "L 3047 1625 \r\n",
       "L 3713 1625 \r\n",
       "L 3713 1100 \r\n",
       "L 3047 1100 \r\n",
       "L 3047 0 \r\n",
       "L 2419 0 \r\n",
       "L 2419 1100 \r\n",
       "L 313 1100 \r\n",
       "L 313 1709 \r\n",
       "L 2253 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-34\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_5\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 261.241071 224.64 \r\n",
       "L 261.241071 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"261.241071\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 5) $500 - $750 -->\r\n",
       "      <g transform=\"translate(264.000446 295.54)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 525 4666 \r\n",
       "L 3525 4666 \r\n",
       "L 3525 4397 \r\n",
       "L 1831 0 \r\n",
       "L 1172 0 \r\n",
       "L 2766 4134 \r\n",
       "L 525 4134 \r\n",
       "L 525 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-37\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-37\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(575.292969 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_6\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 309.069643 224.64 \r\n",
       "L 309.069643 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"309.069643\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 6) $750 - $1,000 -->\r\n",
       "      <g transform=\"translate(311.829018 305.14)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2113 2584 \r\n",
       "Q 1688 2584 1439 2293 \r\n",
       "Q 1191 2003 1191 1497 \r\n",
       "Q 1191 994 1439 701 \r\n",
       "Q 1688 409 2113 409 \r\n",
       "Q 2538 409 2786 701 \r\n",
       "Q 3034 994 3034 1497 \r\n",
       "Q 3034 2003 2786 2293 \r\n",
       "Q 2538 2584 2113 2584 \r\n",
       "z\r\n",
       "M 3366 4563 \r\n",
       "L 3366 3988 \r\n",
       "Q 3128 4100 2886 4159 \r\n",
       "Q 2644 4219 2406 4219 \r\n",
       "Q 1781 4219 1451 3797 \r\n",
       "Q 1122 3375 1075 2522 \r\n",
       "Q 1259 2794 1537 2939 \r\n",
       "Q 1816 3084 2150 3084 \r\n",
       "Q 2853 3084 3261 2657 \r\n",
       "Q 3669 2231 3669 1497 \r\n",
       "Q 3669 778 3244 343 \r\n",
       "Q 2819 -91 2113 -91 \r\n",
       "Q 1303 -91 875 529 \r\n",
       "Q 447 1150 447 2328 \r\n",
       "Q 447 3434 972 4092 \r\n",
       "Q 1497 4750 2381 4750 \r\n",
       "Q 2619 4750 2861 4703 \r\n",
       "Q 3103 4656 3366 4563 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-36\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 750 794 \r\n",
       "L 1409 794 \r\n",
       "L 1409 256 \r\n",
       "L 897 -744 \r\n",
       "L 494 -744 \r\n",
       "L 750 256 \r\n",
       "L 750 794 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-2c\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use transform=\"translate(0 0.125)\" xlink:href=\"#DejaVuSans-36\"/>\r\n",
       "       <use transform=\"translate(63.623047 0.125)\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use transform=\"translate(102.636719 0.125)\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use transform=\"translate(134.423828 0.125)\" xlink:href=\"#DejaVuSans-37\"/>\r\n",
       "       <use transform=\"translate(198.046875 0.125)\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use transform=\"translate(261.669922 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(344.775391 0.125)\" xlink:href=\"#DejaVuSans-2212\"/>\r\n",
       "       <use transform=\"translate(448.046875 0.125)\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use transform=\"translate(511.669922 0.125)\" xlink:href=\"#DejaVuSans-2c\"/>\r\n",
       "       <use transform=\"translate(543.457031 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(607.080078 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use transform=\"translate(670.703125 0.125)\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_7\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 356.898214 224.64 \r\n",
       "L 356.898214 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"356.898214\" xlink:href=\"#m4d4b83241f\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 7) $1,000 + -->\r\n",
       "      <g transform=\"translate(359.657589 291.630625)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2163 -941 \r\n",
       "L 1850 -941 \r\n",
       "L 1847 0 \r\n",
       "Q 1519 6 1191 76 \r\n",
       "Q 863 147 531 288 \r\n",
       "L 531 850 \r\n",
       "Q 850 650 1176 548 \r\n",
       "Q 1503 447 1850 444 \r\n",
       "L 1850 1869 \r\n",
       "Q 1159 1981 845 2250 \r\n",
       "Q 531 2519 531 2988 \r\n",
       "Q 531 3497 872 3790 \r\n",
       "Q 1213 4084 1850 4128 \r\n",
       "L 1850 4863 \r\n",
       "L 2163 4863 \r\n",
       "L 2163 4138 \r\n",
       "Q 2453 4125 2725 4076 \r\n",
       "Q 2997 4028 3256 3944 \r\n",
       "L 3256 3397 \r\n",
       "Q 2997 3528 2723 3600 \r\n",
       "Q 2450 3672 2163 3684 \r\n",
       "L 2163 2350 \r\n",
       "Q 2872 2241 3206 1959 \r\n",
       "Q 3541 1678 3541 1191 \r\n",
       "Q 3541 663 3186 358 \r\n",
       "Q 2831 53 2163 6 \r\n",
       "L 2163 -941 \r\n",
       "z\r\n",
       "M 1850 2406 \r\n",
       "L 1850 3688 \r\n",
       "Q 1488 3647 1297 3481 \r\n",
       "Q 1106 3316 1106 3041 \r\n",
       "Q 1106 2772 1282 2622 \r\n",
       "Q 1459 2472 1850 2406 \r\n",
       "z\r\n",
       "M 2163 1806 \r\n",
       "L 2163 453 \r\n",
       "Q 2559 506 2761 678 \r\n",
       "Q 2963 850 2963 1131 \r\n",
       "Q 2963 1406 2770 1568 \r\n",
       "Q 2578 1731 2163 1806 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-24\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2944 4013 \r\n",
       "L 2944 2272 \r\n",
       "L 4684 2272 \r\n",
       "L 4684 1741 \r\n",
       "L 2944 1741 \r\n",
       "L 2944 0 \r\n",
       "L 2419 0 \r\n",
       "L 2419 1741 \r\n",
       "L 678 1741 \r\n",
       "L 678 2272 \r\n",
       "L 2419 2272 \r\n",
       "L 2419 4013 \r\n",
       "L 2944 4013 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-2b\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-37\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-29\"/>\r\n",
       "       <use x=\"102.636719\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use x=\"134.423828\" xlink:href=\"#DejaVuSans-24\"/>\r\n",
       "       <use x=\"198.046875\" xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"261.669922\" xlink:href=\"#DejaVuSans-2c\"/>\r\n",
       "       <use x=\"293.457031\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"357.080078\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"420.703125\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"484.326172\" xlink:href=\"#DejaVuSans-20\"/>\r\n",
       "       <use x=\"516.113281\" xlink:href=\"#DejaVuSans-2b\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L -3.5 0 \r\n",
       "\" id=\"m92142d817e\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m92142d817e\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(32.65 228.439219)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_17\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 46.0125 179.56257 \r\n",
       "L 380.8125 179.56257 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_18\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m92142d817e\" y=\"179.56257\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g transform=\"translate(13.5625 183.361789)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_19\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 46.0125 134.48514 \r\n",
       "L 380.8125 134.48514 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_20\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m92142d817e\" y=\"134.48514\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g transform=\"translate(7.2 138.284358)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_21\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 46.0125 89.407709 \r\n",
       "L 380.8125 89.407709 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_22\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m92142d817e\" y=\"89.407709\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g transform=\"translate(7.2 93.206928)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_23\">\r\n",
       "      <path clip-path=\"url(#pd18dc8ae41)\" d=\"M 46.0125 44.330279 \r\n",
       "L 380.8125 44.330279 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_24\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m92142d817e\" y=\"44.330279\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_12\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g transform=\"translate(7.2 48.129498)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_10\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 46.0125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_11\">\r\n",
       "    <path d=\"M 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_12\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_13\">\r\n",
       "    <path d=\"M 46.0125 7.2 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"pd18dc8ae41\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"46.0125\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.history_segment.value_counts().plot(kind = 'bar', grid=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "#It's better to proceed from categorical to numeric data\n",
    "# For example, we could replace 0-100 on average value 50 "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"245.2025pt\" version=\"1.1\" viewBox=\"0 0 388.0125 245.2025\" width=\"388.0125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:25.379790</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 245.2025 \r\n",
       "L 388.0125 245.2025 \r\n",
       "L 388.0125 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "L 46.0125 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 87.8625 224.64 \r\n",
       "L 171.5625 224.64 \r\n",
       "L 171.5625 17.554286 \r\n",
       "L 87.8625 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 255.2625 224.64 \r\n",
       "L 338.9625 224.64 \r\n",
       "L 338.9625 55.013597 \r\n",
       "L 255.2625 55.013597 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 129.7125 224.64 \r\n",
       "L 129.7125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 0 3.5 \r\n",
       "\" id=\"mb120f145ab\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"129.7125\" xlink:href=\"#mb120f145ab\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 1 -->\r\n",
       "      <g transform=\"translate(132.471875 238.0025)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 794 531 \r\n",
       "L 1825 531 \r\n",
       "L 1825 4091 \r\n",
       "L 703 3866 \r\n",
       "L 703 4441 \r\n",
       "L 1819 4666 \r\n",
       "L 2450 4666 \r\n",
       "L 2450 531 \r\n",
       "L 3481 531 \r\n",
       "L 3481 0 \r\n",
       "L 794 0 \r\n",
       "L 794 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 297.1125 224.64 \r\n",
       "L 297.1125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"297.1125\" xlink:href=\"#mb120f145ab\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(299.871875 238.0025)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2034 4250 \r\n",
       "Q 1547 4250 1301 3770 \r\n",
       "Q 1056 3291 1056 2328 \r\n",
       "Q 1056 1369 1301 889 \r\n",
       "Q 1547 409 2034 409 \r\n",
       "Q 2525 409 2770 889 \r\n",
       "Q 3016 1369 3016 2328 \r\n",
       "Q 3016 3291 2770 3770 \r\n",
       "Q 2525 4250 2034 4250 \r\n",
       "z\r\n",
       "M 2034 4750 \r\n",
       "Q 2819 4750 3233 4129 \r\n",
       "Q 3647 3509 3647 2328 \r\n",
       "Q 3647 1150 3233 529 \r\n",
       "Q 2819 -91 2034 -91 \r\n",
       "Q 1250 -91 836 529 \r\n",
       "Q 422 1150 422 2328 \r\n",
       "Q 422 3509 836 4129 \r\n",
       "Q 1250 4750 2034 4750 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L -3.5 0 \r\n",
       "\" id=\"m679058b9f1\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(32.65 228.439219)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 195.209366 \r\n",
       "L 380.8125 195.209366 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"195.209366\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g transform=\"translate(13.5625 199.008585)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 691 4666 \r\n",
       "L 3169 4666 \r\n",
       "L 3169 4134 \r\n",
       "L 1269 4134 \r\n",
       "L 1269 2991 \r\n",
       "Q 1406 3038 1543 3061 \r\n",
       "Q 1681 3084 1819 3084 \r\n",
       "Q 2600 3084 3056 2656 \r\n",
       "Q 3513 2228 3513 1497 \r\n",
       "Q 3513 744 3044 326 \r\n",
       "Q 2575 -91 1722 -91 \r\n",
       "Q 1428 -91 1123 -41 \r\n",
       "Q 819 9 494 109 \r\n",
       "L 494 744 \r\n",
       "Q 775 591 1075 516 \r\n",
       "Q 1375 441 1709 441 \r\n",
       "Q 2250 441 2565 725 \r\n",
       "Q 2881 1009 2881 1497 \r\n",
       "Q 2881 1984 2565 2268 \r\n",
       "Q 2250 2553 1709 2553 \r\n",
       "Q 1456 2553 1204 2497 \r\n",
       "Q 953 2441 691 2322 \r\n",
       "L 691 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 165.778732 \r\n",
       "L 380.8125 165.778732 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"165.778732\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g transform=\"translate(7.2 169.57795)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 136.348097 \r\n",
       "L 380.8125 136.348097 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"136.348097\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g transform=\"translate(7.2 140.147316)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 106.917463 \r\n",
       "L 380.8125 106.917463 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"106.917463\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g transform=\"translate(7.2 110.716682)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1228 531 \r\n",
       "L 3431 531 \r\n",
       "L 3431 0 \r\n",
       "L 469 0 \r\n",
       "L 469 531 \r\n",
       "Q 828 903 1448 1529 \r\n",
       "Q 2069 2156 2228 2338 \r\n",
       "Q 2531 2678 2651 2914 \r\n",
       "Q 2772 3150 2772 3378 \r\n",
       "Q 2772 3750 2511 3984 \r\n",
       "Q 2250 4219 1831 4219 \r\n",
       "Q 1534 4219 1204 4116 \r\n",
       "Q 875 4013 500 3803 \r\n",
       "L 500 4441 \r\n",
       "Q 881 4594 1212 4672 \r\n",
       "Q 1544 4750 1819 4750 \r\n",
       "Q 2544 4750 2975 4387 \r\n",
       "Q 3406 4025 3406 3419 \r\n",
       "Q 3406 3131 3298 2873 \r\n",
       "Q 3191 2616 2906 2266 \r\n",
       "Q 2828 2175 2409 1742 \r\n",
       "Q 1991 1309 1228 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 77.486829 \r\n",
       "L 380.8125 77.486829 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"77.486829\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g transform=\"translate(7.2 81.286048)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_17\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 48.056195 \r\n",
       "L 380.8125 48.056195 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_18\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"48.056195\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g transform=\"translate(7.2 51.855414)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2597 2516 \r\n",
       "Q 3050 2419 3304 2112 \r\n",
       "Q 3559 1806 3559 1356 \r\n",
       "Q 3559 666 3084 287 \r\n",
       "Q 2609 -91 1734 -91 \r\n",
       "Q 1441 -91 1130 -33 \r\n",
       "Q 819 25 488 141 \r\n",
       "L 488 750 \r\n",
       "Q 750 597 1062 519 \r\n",
       "Q 1375 441 1716 441 \r\n",
       "Q 2309 441 2620 675 \r\n",
       "Q 2931 909 2931 1356 \r\n",
       "Q 2931 1769 2642 2001 \r\n",
       "Q 2353 2234 1838 2234 \r\n",
       "L 1294 2234 \r\n",
       "L 1294 2753 \r\n",
       "L 1863 2753 \r\n",
       "Q 2328 2753 2575 2939 \r\n",
       "Q 2822 3125 2822 3475 \r\n",
       "Q 2822 3834 2567 4026 \r\n",
       "Q 2313 4219 1838 4219 \r\n",
       "Q 1578 4219 1281 4162 \r\n",
       "Q 984 4106 628 3988 \r\n",
       "L 628 4550 \r\n",
       "Q 988 4650 1302 4700 \r\n",
       "Q 1616 4750 1894 4750 \r\n",
       "Q 2613 4750 3031 4423 \r\n",
       "Q 3450 4097 3450 3541 \r\n",
       "Q 3450 3153 3228 2886 \r\n",
       "Q 3006 2619 2597 2516 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_19\">\r\n",
       "      <path clip-path=\"url(#p93ae7f0d58)\" d=\"M 46.0125 18.625561 \r\n",
       "L 380.8125 18.625561 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_20\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#m679058b9f1\" y=\"18.625561\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 35000 -->\r\n",
       "      <g transform=\"translate(7.2 22.42478)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 46.0125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 46.0125 7.2 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p93ae7f0d58\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"46.0125\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.womens.value_counts().plot(kind = 'bar', grid=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"245.2025pt\" version=\"1.1\" viewBox=\"0 0 388.0125 245.2025\" width=\"388.0125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:29.204404</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 245.2025 \r\n",
       "L 388.0125 245.2025 \r\n",
       "L 388.0125 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "L 46.0125 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#pa20afd8a99)\" d=\"M 87.8625 224.64 \r\n",
       "L 171.5625 224.64 \r\n",
       "L 171.5625 17.554286 \r\n",
       "L 87.8625 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#pa20afd8a99)\" d=\"M 255.2625 224.64 \r\n",
       "L 338.9625 224.64 \r\n",
       "L 338.9625 55.910887 \r\n",
       "L 255.2625 55.910887 \r\n",
       "z\r\n",
       "\" style=\"fill:#1f77b4;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 129.7125 224.64 \r\n",
       "L 129.7125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 0 3.5 \r\n",
       "\" id=\"m1b10849492\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"129.7125\" xlink:href=\"#m1b10849492\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 1 -->\r\n",
       "      <g transform=\"translate(132.471875 238.0025)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 794 531 \r\n",
       "L 1825 531 \r\n",
       "L 1825 4091 \r\n",
       "L 703 3866 \r\n",
       "L 703 4441 \r\n",
       "L 1819 4666 \r\n",
       "L 2450 4666 \r\n",
       "L 2450 531 \r\n",
       "L 3481 531 \r\n",
       "L 3481 0 \r\n",
       "L 794 0 \r\n",
       "L 794 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 297.1125 224.64 \r\n",
       "L 297.1125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"297.1125\" xlink:href=\"#m1b10849492\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(299.871875 238.0025)rotate(-90)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2034 4250 \r\n",
       "Q 1547 4250 1301 3770 \r\n",
       "Q 1056 3291 1056 2328 \r\n",
       "Q 1056 1369 1301 889 \r\n",
       "Q 1547 409 2034 409 \r\n",
       "Q 2525 409 2770 889 \r\n",
       "Q 3016 1369 3016 2328 \r\n",
       "Q 3016 3291 2770 3770 \r\n",
       "Q 2525 4250 2034 4250 \r\n",
       "z\r\n",
       "M 2034 4750 \r\n",
       "Q 2819 4750 3233 4129 \r\n",
       "Q 3647 3509 3647 2328 \r\n",
       "Q 3647 1150 3233 529 \r\n",
       "Q 2819 -91 2034 -91 \r\n",
       "Q 1250 -91 836 529 \r\n",
       "Q 422 1150 422 2328 \r\n",
       "Q 422 3509 836 4129 \r\n",
       "Q 1250 4750 2034 4750 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L -3.5 0 \r\n",
       "\" id=\"mf69402df12\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"224.64\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g transform=\"translate(32.65 228.439219)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 195.279467 \r\n",
       "L 380.8125 195.279467 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"195.279467\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g transform=\"translate(13.5625 199.078685)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 691 4666 \r\n",
       "L 3169 4666 \r\n",
       "L 3169 4134 \r\n",
       "L 1269 4134 \r\n",
       "L 1269 2991 \r\n",
       "Q 1406 3038 1543 3061 \r\n",
       "Q 1681 3084 1819 3084 \r\n",
       "Q 2600 3084 3056 2656 \r\n",
       "Q 3513 2228 3513 1497 \r\n",
       "Q 3513 744 3044 326 \r\n",
       "Q 2575 -91 1722 -91 \r\n",
       "Q 1428 -91 1123 -41 \r\n",
       "Q 819 9 494 109 \r\n",
       "L 494 744 \r\n",
       "Q 775 591 1075 516 \r\n",
       "Q 1375 441 1709 441 \r\n",
       "Q 2250 441 2565 725 \r\n",
       "Q 2881 1009 2881 1497 \r\n",
       "Q 2881 1984 2565 2268 \r\n",
       "Q 2250 2553 1709 2553 \r\n",
       "Q 1456 2553 1204 2497 \r\n",
       "Q 953 2441 691 2322 \r\n",
       "L 691 4666 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 165.918933 \r\n",
       "L 380.8125 165.918933 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"165.918933\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g transform=\"translate(7.2 169.718152)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 136.5584 \r\n",
       "L 380.8125 136.5584 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"136.5584\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g transform=\"translate(7.2 140.357619)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-31\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 107.197866 \r\n",
       "L 380.8125 107.197866 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"107.197866\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g transform=\"translate(7.2 110.997085)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1228 531 \r\n",
       "L 3431 531 \r\n",
       "L 3431 0 \r\n",
       "L 469 0 \r\n",
       "L 469 531 \r\n",
       "Q 828 903 1448 1529 \r\n",
       "Q 2069 2156 2228 2338 \r\n",
       "Q 2531 2678 2651 2914 \r\n",
       "Q 2772 3150 2772 3378 \r\n",
       "Q 2772 3750 2511 3984 \r\n",
       "Q 2250 4219 1831 4219 \r\n",
       "Q 1534 4219 1204 4116 \r\n",
       "Q 875 4013 500 3803 \r\n",
       "L 500 4441 \r\n",
       "Q 881 4594 1212 4672 \r\n",
       "Q 1544 4750 1819 4750 \r\n",
       "Q 2544 4750 2975 4387 \r\n",
       "Q 3406 4025 3406 3419 \r\n",
       "Q 3406 3131 3298 2873 \r\n",
       "Q 3191 2616 2906 2266 \r\n",
       "Q 2828 2175 2409 1742 \r\n",
       "Q 1991 1309 1228 531 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 77.837333 \r\n",
       "L 380.8125 77.837333 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"77.837333\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g transform=\"translate(7.2 81.636552)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-32\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_17\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 48.4768 \r\n",
       "L 380.8125 48.4768 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_18\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"48.4768\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g transform=\"translate(7.2 52.276018)scale(0.1 -0.1)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2597 2516 \r\n",
       "Q 3050 2419 3304 2112 \r\n",
       "Q 3559 1806 3559 1356 \r\n",
       "Q 3559 666 3084 287 \r\n",
       "Q 2609 -91 1734 -91 \r\n",
       "Q 1441 -91 1130 -33 \r\n",
       "Q 819 25 488 141 \r\n",
       "L 488 750 \r\n",
       "Q 750 597 1062 519 \r\n",
       "Q 1375 441 1716 441 \r\n",
       "Q 2309 441 2620 675 \r\n",
       "Q 2931 909 2931 1356 \r\n",
       "Q 2931 1769 2642 2001 \r\n",
       "Q 2353 2234 1838 2234 \r\n",
       "L 1294 2234 \r\n",
       "L 1294 2753 \r\n",
       "L 1863 2753 \r\n",
       "Q 2328 2753 2575 2939 \r\n",
       "Q 2822 3125 2822 3475 \r\n",
       "Q 2822 3834 2567 4026 \r\n",
       "Q 2313 4219 1838 4219 \r\n",
       "Q 1578 4219 1281 4162 \r\n",
       "Q 984 4106 628 3988 \r\n",
       "L 628 4550 \r\n",
       "Q 988 4650 1302 4700 \r\n",
       "Q 1616 4750 1894 4750 \r\n",
       "Q 2613 4750 3031 4423 \r\n",
       "Q 3450 4097 3450 3541 \r\n",
       "Q 3450 3153 3228 2886 \r\n",
       "Q 3006 2619 2597 2516 \r\n",
       "z\r\n",
       "\" id=\"DejaVuSans-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_19\">\r\n",
       "      <path clip-path=\"url(#pa20afd8a99)\" d=\"M 46.0125 19.116266 \r\n",
       "L 380.8125 19.116266 \r\n",
       "\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"line2d_20\">\r\n",
       "      <g>\r\n",
       "       <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.0125\" xlink:href=\"#mf69402df12\" y=\"19.116266\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 35000 -->\r\n",
       "      <g transform=\"translate(7.2 22.915485)scale(0.1 -0.1)\">\r\n",
       "       <use xlink:href=\"#DejaVuSans-33\"/>\r\n",
       "       <use x=\"63.623047\" xlink:href=\"#DejaVuSans-35\"/>\r\n",
       "       <use x=\"127.246094\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"190.869141\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "       <use x=\"254.492188\" xlink:href=\"#DejaVuSans-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 46.0125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 380.8125 224.64 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 46.0125 224.64 \r\n",
       "L 380.8125 224.64 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 46.0125 7.2 \r\n",
       "L 380.8125 7.2 \r\n",
       "\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"pa20afd8a99\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"46.0125\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.mens.value_counts().plot(kind = 'bar', grid=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1    35182\n",
       "0    28818\n",
       "Name: womens, dtype: int64"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.womens.value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "womens\n",
       "0    45.028125\n",
       "1    54.971875\n",
       "dtype: float64"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.groupby('womens').size()/dataset.data['womens'].count()*100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "#55% - womens purchases\n",
    "#44% - mens purchases"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1    35266\n",
       "0    28734\n",
       "Name: mens, dtype: int64"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.mens.value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "mens\n",
       "0    44.896875\n",
       "1    55.103125\n",
       "dtype: float64"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.groupby('mens').size()/dataset.data['mens'].count()*100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "#55% - mens purchases\n",
    "#44% - womens purchases"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"478.863594pt\" version=\"1.1\" viewBox=\"0 0 557.599352 478.863594\" width=\"557.599352pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:42.157360</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 478.863594 \r\n",
       "L 557.599352 478.863594 \r\n",
       "L 557.599352 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 24.341563 454.522031 \r\n",
       "L 459.221563 454.522031 \r\n",
       "L 459.221563 19.642031 \r\n",
       "L 24.341563 19.642031 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- recency -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(53.386906 469.830547)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 416 0 \r\n",
       "L 416 3319 \r\n",
       "L 922 3319 \r\n",
       "L 922 2816 \r\n",
       "Q 1116 3169 1280 3281 \r\n",
       "Q 1444 3394 1641 3394 \r\n",
       "Q 1925 3394 2219 3213 \r\n",
       "L 2025 2691 \r\n",
       "Q 1819 2813 1613 2813 \r\n",
       "Q 1428 2813 1281 2702 \r\n",
       "Q 1134 2591 1072 2394 \r\n",
       "Q 978 2094 978 1738 \r\n",
       "L 978 0 \r\n",
       "L 416 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-72\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2694 1069 \r\n",
       "L 3275 997 \r\n",
       "Q 3138 488 2766 206 \r\n",
       "Q 2394 -75 1816 -75 \r\n",
       "Q 1088 -75 661 373 \r\n",
       "Q 234 822 234 1631 \r\n",
       "Q 234 2469 665 2931 \r\n",
       "Q 1097 3394 1784 3394 \r\n",
       "Q 2450 3394 2872 2941 \r\n",
       "Q 3294 2488 3294 1666 \r\n",
       "Q 3294 1616 3291 1516 \r\n",
       "L 816 1516 \r\n",
       "Q 847 969 1125 678 \r\n",
       "Q 1403 388 1819 388 \r\n",
       "Q 2128 388 2347 550 \r\n",
       "Q 2566 713 2694 1069 \r\n",
       "z\r\n",
       "M 847 1978 \r\n",
       "L 2700 1978 \r\n",
       "Q 2663 2397 2488 2606 \r\n",
       "Q 2219 2931 1791 2931 \r\n",
       "Q 1403 2931 1139 2672 \r\n",
       "Q 875 2413 847 1978 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-65\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2588 1216 \r\n",
       "L 3141 1144 \r\n",
       "Q 3050 572 2676 248 \r\n",
       "Q 2303 -75 1759 -75 \r\n",
       "Q 1078 -75 664 370 \r\n",
       "Q 250 816 250 1647 \r\n",
       "Q 250 2184 428 2587 \r\n",
       "Q 606 2991 970 3192 \r\n",
       "Q 1334 3394 1763 3394 \r\n",
       "Q 2303 3394 2647 3120 \r\n",
       "Q 2991 2847 3088 2344 \r\n",
       "L 2541 2259 \r\n",
       "Q 2463 2594 2264 2762 \r\n",
       "Q 2066 2931 1784 2931 \r\n",
       "Q 1359 2931 1093 2626 \r\n",
       "Q 828 2322 828 1663 \r\n",
       "Q 828 994 1084 691 \r\n",
       "Q 1341 388 1753 388 \r\n",
       "Q 2084 388 2306 591 \r\n",
       "Q 2528 794 2588 1216 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-63\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 3319 \r\n",
       "L 928 3319 \r\n",
       "L 928 2847 \r\n",
       "Q 1294 3394 1984 3394 \r\n",
       "Q 2284 3394 2536 3286 \r\n",
       "Q 2788 3178 2913 3003 \r\n",
       "Q 3038 2828 3088 2588 \r\n",
       "Q 3119 2431 3119 2041 \r\n",
       "L 3119 0 \r\n",
       "L 2556 0 \r\n",
       "L 2556 2019 \r\n",
       "Q 2556 2363 2490 2533 \r\n",
       "Q 2425 2703 2258 2804 \r\n",
       "Q 2091 2906 1866 2906 \r\n",
       "Q 1506 2906 1245 2678 \r\n",
       "Q 984 2450 984 1813 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6e\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 397 -1278 \r\n",
       "L 334 -750 \r\n",
       "Q 519 -800 656 -800 \r\n",
       "Q 844 -800 956 -737 \r\n",
       "Q 1069 -675 1141 -563 \r\n",
       "Q 1194 -478 1313 -144 \r\n",
       "Q 1328 -97 1363 -6 \r\n",
       "L 103 3319 \r\n",
       "L 709 3319 \r\n",
       "L 1400 1397 \r\n",
       "Q 1534 1031 1641 628 \r\n",
       "Q 1738 1016 1872 1384 \r\n",
       "L 2581 3319 \r\n",
       "L 3144 3319 \r\n",
       "L 1881 -56 \r\n",
       "Q 1678 -603 1566 -809 \r\n",
       "Q 1416 -1088 1222 -1217 \r\n",
       "Q 1028 -1347 759 -1347 \r\n",
       "Q 597 -1347 397 -1278 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-79\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-72\"/>\r\n",
       "       <use x=\"33.300781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"88.916016\" xlink:href=\"#ArialMT-63\"/>\r\n",
       "       <use x=\"138.916016\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"194.53125\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"250.146484\" xlink:href=\"#ArialMT-63\"/>\r\n",
       "       <use x=\"300.146484\" xlink:href=\"#ArialMT-79\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- history -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(142.656793 469.927227)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 4581 \r\n",
       "L 984 4581 \r\n",
       "L 984 2938 \r\n",
       "Q 1378 3394 1978 3394 \r\n",
       "Q 2347 3394 2619 3248 \r\n",
       "Q 2891 3103 3008 2847 \r\n",
       "Q 3125 2591 3125 2103 \r\n",
       "L 3125 0 \r\n",
       "L 2563 0 \r\n",
       "L 2563 2103 \r\n",
       "Q 2563 2525 2380 2717 \r\n",
       "Q 2197 2909 1863 2909 \r\n",
       "Q 1613 2909 1392 2779 \r\n",
       "Q 1172 2650 1078 2428 \r\n",
       "Q 984 2206 984 1816 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-68\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 425 3934 \r\n",
       "L 425 4581 \r\n",
       "L 988 4581 \r\n",
       "L 988 3934 \r\n",
       "L 425 3934 \r\n",
       "z\r\n",
       "M 425 0 \r\n",
       "L 425 3319 \r\n",
       "L 988 3319 \r\n",
       "L 988 0 \r\n",
       "L 425 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-69\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 197 991 \r\n",
       "L 753 1078 \r\n",
       "Q 800 744 1014 566 \r\n",
       "Q 1228 388 1613 388 \r\n",
       "Q 2000 388 2187 545 \r\n",
       "Q 2375 703 2375 916 \r\n",
       "Q 2375 1106 2209 1216 \r\n",
       "Q 2094 1291 1634 1406 \r\n",
       "Q 1016 1563 777 1677 \r\n",
       "Q 538 1791 414 1992 \r\n",
       "Q 291 2194 291 2438 \r\n",
       "Q 291 2659 392 2848 \r\n",
       "Q 494 3038 669 3163 \r\n",
       "Q 800 3259 1026 3326 \r\n",
       "Q 1253 3394 1513 3394 \r\n",
       "Q 1903 3394 2198 3281 \r\n",
       "Q 2494 3169 2634 2976 \r\n",
       "Q 2775 2784 2828 2463 \r\n",
       "L 2278 2388 \r\n",
       "Q 2241 2644 2061 2787 \r\n",
       "Q 1881 2931 1553 2931 \r\n",
       "Q 1166 2931 1000 2803 \r\n",
       "Q 834 2675 834 2503 \r\n",
       "Q 834 2394 903 2306 \r\n",
       "Q 972 2216 1119 2156 \r\n",
       "Q 1203 2125 1616 2013 \r\n",
       "Q 2213 1853 2448 1751 \r\n",
       "Q 2684 1650 2818 1456 \r\n",
       "Q 2953 1263 2953 975 \r\n",
       "Q 2953 694 2789 445 \r\n",
       "Q 2625 197 2315 61 \r\n",
       "Q 2006 -75 1616 -75 \r\n",
       "Q 969 -75 630 194 \r\n",
       "Q 291 463 197 991 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-73\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 1650 503 \r\n",
       "L 1731 6 \r\n",
       "Q 1494 -44 1306 -44 \r\n",
       "Q 1000 -44 831 53 \r\n",
       "Q 663 150 594 308 \r\n",
       "Q 525 466 525 972 \r\n",
       "L 525 2881 \r\n",
       "L 113 2881 \r\n",
       "L 113 3319 \r\n",
       "L 525 3319 \r\n",
       "L 525 4141 \r\n",
       "L 1084 4478 \r\n",
       "L 1084 3319 \r\n",
       "L 1650 3319 \r\n",
       "L 1650 2881 \r\n",
       "L 1084 2881 \r\n",
       "L 1084 941 \r\n",
       "Q 1084 700 1114 631 \r\n",
       "Q 1144 563 1211 522 \r\n",
       "Q 1278 481 1403 481 \r\n",
       "Q 1497 481 1650 503 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-74\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 213 1659 \r\n",
       "Q 213 2581 725 3025 \r\n",
       "Q 1153 3394 1769 3394 \r\n",
       "Q 2453 3394 2887 2945 \r\n",
       "Q 3322 2497 3322 1706 \r\n",
       "Q 3322 1066 3130 698 \r\n",
       "Q 2938 331 2570 128 \r\n",
       "Q 2203 -75 1769 -75 \r\n",
       "Q 1072 -75 642 372 \r\n",
       "Q 213 819 213 1659 \r\n",
       "z\r\n",
       "M 791 1659 \r\n",
       "Q 791 1022 1069 705 \r\n",
       "Q 1347 388 1769 388 \r\n",
       "Q 2188 388 2466 706 \r\n",
       "Q 2744 1025 2744 1678 \r\n",
       "Q 2744 2294 2464 2611 \r\n",
       "Q 2184 2928 1769 2928 \r\n",
       "Q 1347 2928 1069 2612 \r\n",
       "Q 791 2297 791 1659 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6f\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-68\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"77.832031\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "       <use x=\"127.832031\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "       <use x=\"155.615234\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"211.230469\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "       <use x=\"244.53125\" xlink:href=\"#ArialMT-79\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- mens -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(231.695293 469.927227)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 3319 \r\n",
       "L 925 3319 \r\n",
       "L 925 2853 \r\n",
       "Q 1081 3097 1340 3245 \r\n",
       "Q 1600 3394 1931 3394 \r\n",
       "Q 2300 3394 2536 3241 \r\n",
       "Q 2772 3088 2869 2813 \r\n",
       "Q 3263 3394 3894 3394 \r\n",
       "Q 4388 3394 4653 3120 \r\n",
       "Q 4919 2847 4919 2278 \r\n",
       "L 4919 0 \r\n",
       "L 4359 0 \r\n",
       "L 4359 2091 \r\n",
       "Q 4359 2428 4304 2576 \r\n",
       "Q 4250 2725 4106 2815 \r\n",
       "Q 3963 2906 3769 2906 \r\n",
       "Q 3419 2906 3187 2673 \r\n",
       "Q 2956 2441 2956 1928 \r\n",
       "L 2956 0 \r\n",
       "L 2394 0 \r\n",
       "L 2394 2156 \r\n",
       "Q 2394 2531 2256 2718 \r\n",
       "Q 2119 2906 1806 2906 \r\n",
       "Q 1569 2906 1367 2781 \r\n",
       "Q 1166 2656 1075 2415 \r\n",
       "Q 984 2175 984 1722 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6d\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-6d\"/>\r\n",
       "       <use x=\"83.300781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"138.916016\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"194.53125\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_4\">\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- womens -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(313.398383 469.927227)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1034 0 \r\n",
       "L 19 3319 \r\n",
       "L 600 3319 \r\n",
       "L 1128 1403 \r\n",
       "L 1325 691 \r\n",
       "Q 1338 744 1497 1375 \r\n",
       "L 2025 3319 \r\n",
       "L 2603 3319 \r\n",
       "L 3100 1394 \r\n",
       "L 3266 759 \r\n",
       "L 3456 1400 \r\n",
       "L 4025 3319 \r\n",
       "L 4572 3319 \r\n",
       "L 3534 0 \r\n",
       "L 2950 0 \r\n",
       "L 2422 1988 \r\n",
       "L 2294 2553 \r\n",
       "L 1622 0 \r\n",
       "L 1034 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-77\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-77\"/>\r\n",
       "       <use x=\"72.216797\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"127.832031\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "       <use x=\"211.132812\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"266.748047\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"322.363281\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_5\">\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- newbie -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(402.662469 469.927227)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 941 0 \r\n",
       "L 419 0 \r\n",
       "L 419 4581 \r\n",
       "L 981 4581 \r\n",
       "L 981 2947 \r\n",
       "Q 1338 3394 1891 3394 \r\n",
       "Q 2197 3394 2470 3270 \r\n",
       "Q 2744 3147 2920 2923 \r\n",
       "Q 3097 2700 3197 2384 \r\n",
       "Q 3297 2069 3297 1709 \r\n",
       "Q 3297 856 2875 390 \r\n",
       "Q 2453 -75 1863 -75 \r\n",
       "Q 1275 -75 941 416 \r\n",
       "L 941 0 \r\n",
       "z\r\n",
       "M 934 1684 \r\n",
       "Q 934 1088 1097 822 \r\n",
       "Q 1363 388 1816 388 \r\n",
       "Q 2184 388 2453 708 \r\n",
       "Q 2722 1028 2722 1663 \r\n",
       "Q 2722 2313 2464 2622 \r\n",
       "Q 2206 2931 1841 2931 \r\n",
       "Q 1472 2931 1203 2611 \r\n",
       "Q 934 2291 934 1684 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-62\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-77\"/>\r\n",
       "       <use x=\"183.447266\" xlink:href=\"#ArialMT-62\"/>\r\n",
       "       <use x=\"239.0625\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"261.279297\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- recency -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(13.105195 89.111086)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-72\"/>\r\n",
       "       <use x=\"33.300781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"88.916016\" xlink:href=\"#ArialMT-63\"/>\r\n",
       "       <use x=\"138.916016\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"194.53125\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"250.146484\" xlink:href=\"#ArialMT-63\"/>\r\n",
       "       <use x=\"300.146484\" xlink:href=\"#ArialMT-79\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- history -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(13.105195 171.450973)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-68\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"77.832031\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "       <use x=\"127.832031\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "       <use x=\"155.615234\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"211.230469\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "       <use x=\"244.53125\" xlink:href=\"#ArialMT-79\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- mens -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(13.201875 254.301973)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-6d\"/>\r\n",
       "       <use x=\"83.300781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"138.916016\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"194.53125\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- womens -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(13.201875 351.823793)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-77\"/>\r\n",
       "       <use x=\"72.216797\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"127.832031\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "       <use x=\"211.132812\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"266.748047\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"322.363281\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- newbie -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(13.201875 434.223621)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-77\"/>\r\n",
       "       <use x=\"183.447266\" xlink:href=\"#ArialMT-62\"/>\r\n",
       "       <use x=\"239.0625\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"261.279297\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"QuadMesh_1\">\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 24.341563 19.642031 \r\n",
       "L 111.317563 19.642031 \r\n",
       "L 111.317563 106.618031 \r\n",
       "L 24.341563 106.618031 \r\n",
       "L 24.341563 19.642031 \r\n",
       "\" style=\"fill:#49006a;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 111.317563 19.642031 \r\n",
       "L 198.293563 19.642031 \r\n",
       "L 198.293563 106.618031 \r\n",
       "L 111.317563 106.618031 \r\n",
       "L 111.317563 19.642031 \r\n",
       "\" style=\"fill:#fbb2ba;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 198.293563 19.642031 \r\n",
       "L 285.269563 19.642031 \r\n",
       "L 285.269563 106.618031 \r\n",
       "L 198.293563 106.618031 \r\n",
       "L 198.293563 19.642031 \r\n",
       "\" style=\"fill:#f986ac;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 285.269563 19.642031 \r\n",
       "L 372.245563 19.642031 \r\n",
       "L 372.245563 106.618031 \r\n",
       "L 285.269563 106.618031 \r\n",
       "L 285.269563 19.642031 \r\n",
       "\" style=\"fill:#f984ab;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 372.245563 19.642031 \r\n",
       "L 459.221563 19.642031 \r\n",
       "L 459.221563 106.618031 \r\n",
       "L 372.245563 106.618031 \r\n",
       "L 372.245563 19.642031 \r\n",
       "\" style=\"fill:#f98bae;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 24.341563 106.618031 \r\n",
       "L 111.317563 106.618031 \r\n",
       "L 111.317563 193.594031 \r\n",
       "L 24.341563 193.594031 \r\n",
       "L 24.341563 106.618031 \r\n",
       "\" style=\"fill:#fbb2ba;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 111.317563 106.618031 \r\n",
       "L 198.293563 106.618031 \r\n",
       "L 198.293563 193.594031 \r\n",
       "L 111.317563 193.594031 \r\n",
       "L 111.317563 106.618031 \r\n",
       "\" style=\"fill:#49006a;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 198.293563 106.618031 \r\n",
       "L 285.269563 106.618031 \r\n",
       "L 285.269563 193.594031 \r\n",
       "L 198.293563 193.594031 \r\n",
       "L 198.293563 106.618031 \r\n",
       "\" style=\"fill:#f462a0;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 285.269563 106.618031 \r\n",
       "L 372.245563 106.618031 \r\n",
       "L 372.245563 193.594031 \r\n",
       "L 285.269563 193.594031 \r\n",
       "L 285.269563 106.618031 \r\n",
       "\" style=\"fill:#f462a0;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 372.245563 106.618031 \r\n",
       "L 459.221563 106.618031 \r\n",
       "L 459.221563 193.594031 \r\n",
       "L 372.245563 193.594031 \r\n",
       "L 372.245563 106.618031 \r\n",
       "\" style=\"fill:#e84a9b;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 24.341563 193.594031 \r\n",
       "L 111.317563 193.594031 \r\n",
       "L 111.317563 280.570031 \r\n",
       "L 24.341563 280.570031 \r\n",
       "L 24.341563 193.594031 \r\n",
       "\" style=\"fill:#f986ac;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 111.317563 193.594031 \r\n",
       "L 198.293563 193.594031 \r\n",
       "L 198.293563 280.570031 \r\n",
       "L 111.317563 280.570031 \r\n",
       "L 111.317563 193.594031 \r\n",
       "\" style=\"fill:#f462a0;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 198.293563 193.594031 \r\n",
       "L 285.269563 193.594031 \r\n",
       "L 285.269563 280.570031 \r\n",
       "L 198.293563 280.570031 \r\n",
       "L 198.293563 193.594031 \r\n",
       "\" style=\"fill:#49006a;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 285.269563 193.594031 \r\n",
       "L 372.245563 193.594031 \r\n",
       "L 372.245563 280.570031 \r\n",
       "L 285.269563 280.570031 \r\n",
       "L 285.269563 193.594031 \r\n",
       "\" style=\"fill:#fff7f3;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 372.245563 193.594031 \r\n",
       "L 459.221563 193.594031 \r\n",
       "L 459.221563 280.570031 \r\n",
       "L 372.245563 280.570031 \r\n",
       "L 372.245563 193.594031 \r\n",
       "\" style=\"fill:#f878a7;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 24.341563 280.570031 \r\n",
       "L 111.317563 280.570031 \r\n",
       "L 111.317563 367.546031 \r\n",
       "L 24.341563 367.546031 \r\n",
       "L 24.341563 280.570031 \r\n",
       "\" style=\"fill:#f984ab;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 111.317563 280.570031 \r\n",
       "L 198.293563 280.570031 \r\n",
       "L 198.293563 367.546031 \r\n",
       "L 111.317563 367.546031 \r\n",
       "L 111.317563 280.570031 \r\n",
       "\" style=\"fill:#f462a0;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 198.293563 280.570031 \r\n",
       "L 285.269563 280.570031 \r\n",
       "L 285.269563 367.546031 \r\n",
       "L 198.293563 367.546031 \r\n",
       "L 198.293563 280.570031 \r\n",
       "\" style=\"fill:#fff7f3;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 285.269563 280.570031 \r\n",
       "L 372.245563 280.570031 \r\n",
       "L 372.245563 367.546031 \r\n",
       "L 285.269563 367.546031 \r\n",
       "L 285.269563 280.570031 \r\n",
       "\" style=\"fill:#49006a;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 372.245563 280.570031 \r\n",
       "L 459.221563 280.570031 \r\n",
       "L 459.221563 367.546031 \r\n",
       "L 372.245563 367.546031 \r\n",
       "L 372.245563 280.570031 \r\n",
       "\" style=\"fill:#f878a7;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 24.341563 367.546031 \r\n",
       "L 111.317563 367.546031 \r\n",
       "L 111.317563 454.522031 \r\n",
       "L 24.341563 454.522031 \r\n",
       "L 24.341563 367.546031 \r\n",
       "\" style=\"fill:#f98bae;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 111.317563 367.546031 \r\n",
       "L 198.293563 367.546031 \r\n",
       "L 198.293563 454.522031 \r\n",
       "L 111.317563 454.522031 \r\n",
       "L 111.317563 367.546031 \r\n",
       "\" style=\"fill:#e84a9b;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 198.293563 367.546031 \r\n",
       "L 285.269563 367.546031 \r\n",
       "L 285.269563 454.522031 \r\n",
       "L 198.293563 454.522031 \r\n",
       "L 198.293563 367.546031 \r\n",
       "\" style=\"fill:#f878a7;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 285.269563 367.546031 \r\n",
       "L 372.245563 367.546031 \r\n",
       "L 372.245563 454.522031 \r\n",
       "L 285.269563 454.522031 \r\n",
       "L 285.269563 367.546031 \r\n",
       "\" style=\"fill:#f878a7;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "    <path clip-path=\"url(#p8577f80996)\" d=\"M 372.245563 367.546031 \r\n",
       "L 459.221563 367.546031 \r\n",
       "L 459.221563 454.522031 \r\n",
       "L 372.245563 454.522031 \r\n",
       "L 372.245563 367.546031 \r\n",
       "\" style=\"fill:#49006a;stroke:#ffffff;stroke-width:0.75;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_11\">\r\n",
       "    <!-- 1.00 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(58.099094 65.715187)scale(0.1 -0.1)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 581 0 \r\n",
       "L 581 641 \r\n",
       "L 1222 641 \r\n",
       "L 1222 0 \r\n",
       "L 581 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-2e\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_12\">\r\n",
       "    <!-- -0.25 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(143.41025 65.715187)scale(0.1 -0.1)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 203 1375 \r\n",
       "L 203 1941 \r\n",
       "L 1931 1941 \r\n",
       "L 1931 1375 \r\n",
       "L 203 1375 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-2d\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_13\">\r\n",
       "    <!-- -0.03 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(230.38625 65.715187)scale(0.1 -0.1)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 269 1209 \r\n",
       "L 831 1284 \r\n",
       "Q 928 806 1161 595 \r\n",
       "Q 1394 384 1728 384 \r\n",
       "Q 2125 384 2398 659 \r\n",
       "Q 2672 934 2672 1341 \r\n",
       "Q 2672 1728 2419 1979 \r\n",
       "Q 2166 2231 1775 2231 \r\n",
       "Q 1616 2231 1378 2169 \r\n",
       "L 1441 2663 \r\n",
       "Q 1497 2656 1531 2656 \r\n",
       "Q 1891 2656 2178 2843 \r\n",
       "Q 2466 3031 2466 3422 \r\n",
       "Q 2466 3731 2256 3934 \r\n",
       "Q 2047 4138 1716 4138 \r\n",
       "Q 1388 4138 1169 3931 \r\n",
       "Q 950 3725 888 3313 \r\n",
       "L 325 3413 \r\n",
       "Q 428 3978 793 4289 \r\n",
       "Q 1159 4600 1703 4600 \r\n",
       "Q 2078 4600 2393 4439 \r\n",
       "Q 2709 4278 2876 4000 \r\n",
       "Q 3044 3722 3044 3409 \r\n",
       "Q 3044 3113 2884 2869 \r\n",
       "Q 2725 2625 2413 2481 \r\n",
       "Q 2819 2388 3044 2092 \r\n",
       "Q 3269 1797 3269 1353 \r\n",
       "Q 3269 753 2831 336 \r\n",
       "Q 2394 -81 1725 -81 \r\n",
       "Q 1122 -81 723 278 \r\n",
       "Q 325 638 269 1209 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-33\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-33\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_14\">\r\n",
       "    <!-- -0.03 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(317.36225 65.715187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-33\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_15\">\r\n",
       "    <!-- -0.05 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(404.33825 65.715187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_16\">\r\n",
       "    <!-- -0.25 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(56.43425 152.691187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_17\">\r\n",
       "    <!-- 1.00 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(145.075094 152.691187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_18\">\r\n",
       "    <!-- 0.11 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(232.419844 152.691187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"131.638672\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_19\">\r\n",
       "    <!-- 0.12 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(319.027094 152.691187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_20\">\r\n",
       "    <!-- 0.22 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(406.003094 152.691187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_21\">\r\n",
       "    <!-- -0.03 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(56.43425 239.667187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-33\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_22\">\r\n",
       "    <!-- 0.11 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(145.443844 239.667187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"131.638672\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_23\">\r\n",
       "    <!-- 1.00 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(232.051094 239.667187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_24\">\r\n",
       "    <!-- -0.82 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(317.36225 239.667187)scale(0.1 -0.1)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 1131 2484 \r\n",
       "Q 781 2613 612 2850 \r\n",
       "Q 444 3088 444 3419 \r\n",
       "Q 444 3919 803 4259 \r\n",
       "Q 1163 4600 1759 4600 \r\n",
       "Q 2359 4600 2725 4251 \r\n",
       "Q 3091 3903 3091 3403 \r\n",
       "Q 3091 3084 2923 2848 \r\n",
       "Q 2756 2613 2416 2484 \r\n",
       "Q 2838 2347 3058 2040 \r\n",
       "Q 3278 1734 3278 1309 \r\n",
       "Q 3278 722 2862 322 \r\n",
       "Q 2447 -78 1769 -78 \r\n",
       "Q 1091 -78 675 323 \r\n",
       "Q 259 725 259 1325 \r\n",
       "Q 259 1772 486 2073 \r\n",
       "Q 713 2375 1131 2484 \r\n",
       "z\r\n",
       "M 1019 3438 \r\n",
       "Q 1019 3113 1228 2906 \r\n",
       "Q 1438 2700 1772 2700 \r\n",
       "Q 2097 2700 2305 2904 \r\n",
       "Q 2513 3109 2513 3406 \r\n",
       "Q 2513 3716 2298 3927 \r\n",
       "Q 2084 4138 1766 4138 \r\n",
       "Q 1444 4138 1231 3931 \r\n",
       "Q 1019 3725 1019 3438 \r\n",
       "z\r\n",
       "M 838 1322 \r\n",
       "Q 838 1081 952 856 \r\n",
       "Q 1066 631 1291 507 \r\n",
       "Q 1516 384 1775 384 \r\n",
       "Q 2178 384 2440 643 \r\n",
       "Q 2703 903 2703 1303 \r\n",
       "Q 2703 1709 2433 1975 \r\n",
       "Q 2163 2241 1756 2241 \r\n",
       "Q 1359 2241 1098 1978 \r\n",
       "Q 838 1716 838 1322 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-38\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_25\">\r\n",
       "    <!-- 0.02 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(406.003094 239.667187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_26\">\r\n",
       "    <!-- -0.03 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(56.43425 326.643187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-33\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_27\">\r\n",
       "    <!-- 0.12 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(145.075094 326.643187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_28\">\r\n",
       "    <!-- -0.82 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(230.38625 326.643187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_29\">\r\n",
       "    <!-- 1.00 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(319.027094 326.643187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_30\">\r\n",
       "    <!-- 0.02 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(406.003094 326.643187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_31\">\r\n",
       "    <!-- -0.05 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(56.43425 413.619187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-2d\"/>\r\n",
       "     <use x=\"33.300781\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"88.916016\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"116.699219\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"172.314453\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_32\">\r\n",
       "    <!-- 0.22 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(145.075094 413.619187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_33\">\r\n",
       "    <!-- 0.02 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(232.051094 413.619187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_34\">\r\n",
       "    <!-- 0.02 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(319.027094 413.619187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_35\">\r\n",
       "    <!-- 1.00 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(406.003094 413.619187)scale(0.1 -0.1)\">\r\n",
       "     <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_36\">\r\n",
       "    <!-- Correlation matrix -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(206.27375 13.642031)scale(0.09 -0.09)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 3763 1606 \r\n",
       "L 4369 1453 \r\n",
       "Q 4178 706 3683 314 \r\n",
       "Q 3188 -78 2472 -78 \r\n",
       "Q 1731 -78 1267 223 \r\n",
       "Q 803 525 561 1097 \r\n",
       "Q 319 1669 319 2325 \r\n",
       "Q 319 3041 592 3573 \r\n",
       "Q 866 4106 1370 4382 \r\n",
       "Q 1875 4659 2481 4659 \r\n",
       "Q 3169 4659 3637 4309 \r\n",
       "Q 4106 3959 4291 3325 \r\n",
       "L 3694 3184 \r\n",
       "Q 3534 3684 3231 3912 \r\n",
       "Q 2928 4141 2469 4141 \r\n",
       "Q 1941 4141 1586 3887 \r\n",
       "Q 1231 3634 1087 3207 \r\n",
       "Q 944 2781 944 2328 \r\n",
       "Q 944 1744 1114 1308 \r\n",
       "Q 1284 872 1643 656 \r\n",
       "Q 2003 441 2422 441 \r\n",
       "Q 2931 441 3284 734 \r\n",
       "Q 3638 1028 3763 1606 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-43\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 409 0 \r\n",
       "L 409 4581 \r\n",
       "L 972 4581 \r\n",
       "L 972 0 \r\n",
       "L 409 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6c\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 2588 409 \r\n",
       "Q 2275 144 1986 34 \r\n",
       "Q 1697 -75 1366 -75 \r\n",
       "Q 819 -75 525 192 \r\n",
       "Q 231 459 231 875 \r\n",
       "Q 231 1119 342 1320 \r\n",
       "Q 453 1522 633 1644 \r\n",
       "Q 813 1766 1038 1828 \r\n",
       "Q 1203 1872 1538 1913 \r\n",
       "Q 2219 1994 2541 2106 \r\n",
       "Q 2544 2222 2544 2253 \r\n",
       "Q 2544 2597 2384 2738 \r\n",
       "Q 2169 2928 1744 2928 \r\n",
       "Q 1347 2928 1158 2789 \r\n",
       "Q 969 2650 878 2297 \r\n",
       "L 328 2372 \r\n",
       "Q 403 2725 575 2942 \r\n",
       "Q 747 3159 1072 3276 \r\n",
       "Q 1397 3394 1825 3394 \r\n",
       "Q 2250 3394 2515 3294 \r\n",
       "Q 2781 3194 2906 3042 \r\n",
       "Q 3031 2891 3081 2659 \r\n",
       "Q 3109 2516 3109 2141 \r\n",
       "L 3109 1391 \r\n",
       "Q 3109 606 3145 398 \r\n",
       "Q 3181 191 3288 0 \r\n",
       "L 2700 0 \r\n",
       "Q 2613 175 2588 409 \r\n",
       "z\r\n",
       "M 2541 1666 \r\n",
       "Q 2234 1541 1622 1453 \r\n",
       "Q 1275 1403 1131 1340 \r\n",
       "Q 988 1278 909 1158 \r\n",
       "Q 831 1038 831 891 \r\n",
       "Q 831 666 1001 516 \r\n",
       "Q 1172 366 1500 366 \r\n",
       "Q 1825 366 2078 508 \r\n",
       "Q 2331 650 2450 897 \r\n",
       "Q 2541 1088 2541 1459 \r\n",
       "L 2541 1666 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-61\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path id=\"ArialMT-20\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 47 0 \r\n",
       "L 1259 1725 \r\n",
       "L 138 3319 \r\n",
       "L 841 3319 \r\n",
       "L 1350 2541 \r\n",
       "Q 1494 2319 1581 2169 \r\n",
       "Q 1719 2375 1834 2534 \r\n",
       "L 2394 3319 \r\n",
       "L 3066 3319 \r\n",
       "L 1919 1756 \r\n",
       "L 3153 0 \r\n",
       "L 2463 0 \r\n",
       "L 1781 1031 \r\n",
       "L 1600 1309 \r\n",
       "L 728 0 \r\n",
       "L 47 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-78\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-43\"/>\r\n",
       "     <use x=\"72.216797\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "     <use x=\"127.832031\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "     <use x=\"161.132812\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "     <use x=\"194.433594\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "     <use x=\"250.048828\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "     <use x=\"272.265625\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "     <use x=\"327.880859\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "     <use x=\"355.664062\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "     <use x=\"377.880859\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "     <use x=\"433.496094\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "     <use x=\"489.111328\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "     <use x=\"516.894531\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "     <use x=\"600.195312\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "     <use x=\"655.810547\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "     <use x=\"683.59375\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "     <use x=\"716.894531\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "     <use x=\"739.111328\" xlink:href=\"#ArialMT-78\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_2\">\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path d=\"M 498.281563 454.522031 \r\n",
       "L 520.025562 454.522031 \r\n",
       "L 520.025562 19.642031 \r\n",
       "L 498.281563 19.642031 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p0d0cf1a79f)\" d=\"M 498.281563 454.522031 \r\n",
       "L 498.281563 452.823281 \r\n",
       "L 498.281563 21.340781 \r\n",
       "L 498.281563 19.642031 \r\n",
       "L 520.025562 19.642031 \r\n",
       "L 520.025562 21.340781 \r\n",
       "L 520.025562 452.823281 \r\n",
       "L 520.025562 454.522031 \r\n",
       "L 520.025562 454.522031 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;stroke:#eaeaf2;stroke-linejoin:miter;stroke-width:0.01;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_3\"/>\r\n",
       "   <g id=\"matplotlib.axis_4\">\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 6 0 \r\n",
       "\" id=\"mbbc1a8e7b4\" style=\"stroke:#262626;stroke-width:1.25;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"438.48628\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_37\">\r\n",
       "      <!-- −0.75 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 441.438878)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3381 1997 \r\n",
       "L 356 1997 \r\n",
       "L 356 2522 \r\n",
       "L 3381 2522 \r\n",
       "L 3381 1997 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-2212\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 303 3981 \r\n",
       "L 303 4522 \r\n",
       "L 3269 4522 \r\n",
       "L 3269 4084 \r\n",
       "Q 2831 3619 2401 2847 \r\n",
       "Q 1972 2075 1738 1259 \r\n",
       "Q 1569 684 1522 0 \r\n",
       "L 944 0 \r\n",
       "Q 953 541 1156 1306 \r\n",
       "Q 1359 2072 1739 2783 \r\n",
       "Q 2119 3494 2547 3981 \r\n",
       "L 303 3981 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-37\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-2212\"/>\r\n",
       "       <use x=\"58.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"114.013672\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"141.796875\" xlink:href=\"#ArialMT-37\"/>\r\n",
       "       <use x=\"197.412109\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"378.651387\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_38\">\r\n",
       "      <!-- −0.50 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 381.603985)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-2212\"/>\r\n",
       "       <use x=\"58.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"114.013672\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"141.796875\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"197.412109\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"318.816495\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_39\">\r\n",
       "      <!-- −0.25 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 321.769092)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-2212\"/>\r\n",
       "       <use x=\"58.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"114.013672\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"141.796875\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"197.412109\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_9\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"258.981602\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_40\">\r\n",
       "      <!-- 0.00 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 261.9342)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_10\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"199.146709\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_41\">\r\n",
       "      <!-- 0.25 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 202.099307)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"139.013672\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_11\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"139.311817\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_42\">\r\n",
       "      <!-- 0.50 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 142.264414)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_12\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"79.476924\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_43\">\r\n",
       "      <!-- 0.75 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 82.429522)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-37\"/>\r\n",
       "       <use x=\"139.013672\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_13\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"520.025562\" xlink:href=\"#mbbc1a8e7b4\" y=\"19.642031\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_44\">\r\n",
       "      <!-- 1.00 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(529.525562 22.594629)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"139.013672\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <image height=\"435\" id=\"imageafd4c3a4b0\" transform=\"scale(1 -1)translate(0 -435)\" width=\"22\" x=\"498\" xlink:href=\"data:image/png;base64,\r\n",
       "iVBORw0KGgoAAAANSUhEUgAAABYAAAGzCAYAAAArEufSAAACL0lEQVR4nO2dMW7gMBADdYH//9kr0lkpvKL9ARYDzDyAWJBaynYS5N/+/b9XgZ+G6FprXWtXBu5NrBUBOXFHuDhxaWRgeJs2sZsXkBO3hEvKhheIRV/yGHncOsKGFwwvFMPD1eb2uA3E42Z4AzE8WlfwhA0vOPFHGFibTvzAu5qQVjjxEbYrBt7EWhH8Rh94HmtFsCuCE3+EvaUHJw52RfC720fYrhh4x+1at1Y8OHFoFn1Ft2kFbkFK2SHDs+gjfHeEDS8gF6QmjAsPuCA1YVx4bl6EcQ8svPBaj1i8yxQYHnDi0koTrQBO3AoP+MCCu5p4Hte6AvdcAbylDW8gFr3hDcTa9Gp6hXlW0CbufaPHWQGc2PAGYtH33qUN74EXHm9iX24Cb0GQXcGbuCTM27yNC2/jriaf6A+G9xHmhQdst5IwcPMMb+BdpsDweC+Qta7g/dUmcPO8pQfi5uHarVf0hjfwvlcArQAeN8MbDC/0Jr5bv6GnFQfeglw3LjzeO0jLY6QVHWGLPlj04SoNDDxuFn0ghuc5Hni3NG9BkFZ0hHnHjbh5wKIvCROtoE0MbLeWcOkY+49HXmoeI8PrgAyPdo4Nry5sbQakxyVhnhW8iVsLArSCN3Fx82i16S194E2MDI+2IIZ3QG5e66NpRdbwPiA99rg9AIve17GD4b3CWnHwagq+/Qe/FL7CwM3j/fi4JcwrerviwPOY2BW48OyKA/K4lYQtoYNFH2oe/wEjN8QdOmfZfwAAAABJRU5ErkJggg==\" y=\"-19\"/>\r\n",
       "   <g id=\"LineCollection_1\"/>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 498.281563 454.522031 \r\n",
       "L 498.281563 452.823281 \r\n",
       "L 498.281563 21.340781 \r\n",
       "L 498.281563 19.642031 \r\n",
       "L 520.025562 19.642031 \r\n",
       "L 520.025562 21.340781 \r\n",
       "L 520.025562 452.823281 \r\n",
       "L 520.025562 454.522031 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p8577f80996\">\r\n",
       "   <rect height=\"434.88\" width=\"434.88\" x=\"24.341563\" y=\"19.642031\"/>\r\n",
       "  </clipPath>\r\n",
       "  <clipPath id=\"p0d0cf1a79f\">\r\n",
       "   <rect height=\"434.88\" width=\"21.744\" x=\"498.281563\" y=\"19.642031\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 1008x576 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize = (14,8))\n",
    "\n",
    "sns.set(font_scale=0.75)\n",
    "sns.heatmap(dataset.data.corr().round(3), annot=True, square = True, linewidths=.75, cmap='RdPu', fmt = '.2f',annot_kws = {\"size\": 10} )\n",
    "\n",
    "plt.title('Correlation matrix')\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "# womens and mens are in inverse correlation. I propose to make 1 column \"gender\" and merge."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "# As we can see, there is high correlation between 'history_segment' and 'history'. Could we merge it also and transform columns to numeric data? "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Numeric data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"248.884883pt\" version=\"1.1\" viewBox=\"0 0 488.651094 248.884883\" width=\"488.651094pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:48.970419</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 248.884883 \r\n",
       "L 488.651094 248.884883 \r\n",
       "L 488.651094 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 35.051094 224.64 \r\n",
       "L 481.451094 224.64 \r\n",
       "L 481.451094 7.2 \r\n",
       "L 35.051094 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 92.234565 224.64 \r\n",
       "L 92.234565 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 2 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(89.940678 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 166.019689 224.64 \r\n",
       "L 166.019689 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 4 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(163.725802 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2069 0 \r\n",
       "L 2069 1097 \r\n",
       "L 81 1097 \r\n",
       "L 81 1613 \r\n",
       "L 2172 4581 \r\n",
       "L 2631 4581 \r\n",
       "L 2631 1613 \r\n",
       "L 3250 1613 \r\n",
       "L 3250 1097 \r\n",
       "L 2631 1097 \r\n",
       "L 2631 0 \r\n",
       "L 2069 0 \r\n",
       "z\r\n",
       "M 2069 1613 \r\n",
       "L 2069 3678 \r\n",
       "L 634 1613 \r\n",
       "L 2069 1613 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-34\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 239.804813 224.64 \r\n",
       "L 239.804813 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 6 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(237.510926 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3184 3459 \r\n",
       "L 2625 3416 \r\n",
       "Q 2550 3747 2413 3897 \r\n",
       "Q 2184 4138 1850 4138 \r\n",
       "Q 1581 4138 1378 3988 \r\n",
       "Q 1113 3794 959 3422 \r\n",
       "Q 806 3050 800 2363 \r\n",
       "Q 1003 2672 1297 2822 \r\n",
       "Q 1591 2972 1913 2972 \r\n",
       "Q 2475 2972 2870 2558 \r\n",
       "Q 3266 2144 3266 1488 \r\n",
       "Q 3266 1056 3080 686 \r\n",
       "Q 2894 316 2569 119 \r\n",
       "Q 2244 -78 1831 -78 \r\n",
       "Q 1128 -78 684 439 \r\n",
       "Q 241 956 241 2144 \r\n",
       "Q 241 3472 731 4075 \r\n",
       "Q 1159 4600 1884 4600 \r\n",
       "Q 2425 4600 2770 4297 \r\n",
       "Q 3116 3994 3184 3459 \r\n",
       "z\r\n",
       "M 888 1484 \r\n",
       "Q 888 1194 1011 928 \r\n",
       "Q 1134 663 1356 523 \r\n",
       "Q 1578 384 1822 384 \r\n",
       "Q 2178 384 2434 671 \r\n",
       "Q 2691 959 2691 1453 \r\n",
       "Q 2691 1928 2437 2201 \r\n",
       "Q 2184 2475 1800 2475 \r\n",
       "Q 1419 2475 1153 2201 \r\n",
       "Q 888 1928 888 1484 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-36\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-36\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_4\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 313.589937 224.64 \r\n",
       "L 313.589937 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 8 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(311.29605 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1131 2484 \r\n",
       "Q 781 2613 612 2850 \r\n",
       "Q 444 3088 444 3419 \r\n",
       "Q 444 3919 803 4259 \r\n",
       "Q 1163 4600 1759 4600 \r\n",
       "Q 2359 4600 2725 4251 \r\n",
       "Q 3091 3903 3091 3403 \r\n",
       "Q 3091 3084 2923 2848 \r\n",
       "Q 2756 2613 2416 2484 \r\n",
       "Q 2838 2347 3058 2040 \r\n",
       "Q 3278 1734 3278 1309 \r\n",
       "Q 3278 722 2862 322 \r\n",
       "Q 2447 -78 1769 -78 \r\n",
       "Q 1091 -78 675 323 \r\n",
       "Q 259 725 259 1325 \r\n",
       "Q 259 1772 486 2073 \r\n",
       "Q 713 2375 1131 2484 \r\n",
       "z\r\n",
       "M 1019 3438 \r\n",
       "Q 1019 3113 1228 2906 \r\n",
       "Q 1438 2700 1772 2700 \r\n",
       "Q 2097 2700 2305 2904 \r\n",
       "Q 2513 3109 2513 3406 \r\n",
       "Q 2513 3716 2298 3927 \r\n",
       "Q 2084 4138 1766 4138 \r\n",
       "Q 1444 4138 1231 3931 \r\n",
       "Q 1019 3725 1019 3438 \r\n",
       "z\r\n",
       "M 838 1322 \r\n",
       "Q 838 1081 952 856 \r\n",
       "Q 1066 631 1291 507 \r\n",
       "Q 1516 384 1775 384 \r\n",
       "Q 2178 384 2440 643 \r\n",
       "Q 2703 903 2703 1303 \r\n",
       "Q 2703 1709 2433 1975 \r\n",
       "Q 2163 2241 1756 2241 \r\n",
       "Q 1359 2241 1098 1978 \r\n",
       "Q 838 1716 838 1322 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-38\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-38\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_5\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 387.375061 224.64 \r\n",
       "L 387.375061 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 10 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(382.787287 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_6\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 461.160185 224.64 \r\n",
       "L 461.160185 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 12 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(456.572411 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 35.051094 224.64 \r\n",
       "L 481.451094 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(20.96332 227.592598)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 35.051094 178.374201 \r\n",
       "L 481.451094 178.374201 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 2000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 181.326799)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 35.051094 132.108403 \r\n",
       "L 481.451094 132.108403 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 4000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 135.061001)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-34\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 35.051094 85.842604 \r\n",
       "L 481.451094 85.842604 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 6000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 88.795202)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-36\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p138764031b)\" d=\"M 35.051094 39.576806 \r\n",
       "L 481.451094 39.576806 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 8000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 42.529403)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-38\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 55.342003 224.64 \r\n",
       "L 89.160185 224.64 \r\n",
       "L 89.160185 17.554286 \r\n",
       "L 55.342003 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 89.160185 224.64 \r\n",
       "L 122.978366 224.64 \r\n",
       "L 122.978366 50.287338 \r\n",
       "L 89.160185 50.287338 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 122.978366 224.64 \r\n",
       "L 156.796548 224.64 \r\n",
       "L 156.796548 88.063363 \r\n",
       "L 122.978366 88.063363 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 156.796548 224.64 \r\n",
       "L 190.61473 224.64 \r\n",
       "L 190.61473 107.19427 \r\n",
       "L 156.796548 107.19427 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 190.61473 224.64 \r\n",
       "L 224.432912 224.64 \r\n",
       "L 224.432912 120.310624 \r\n",
       "L 190.61473 120.310624 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 224.432912 224.64 \r\n",
       "L 258.251094 224.64 \r\n",
       "L 258.251094 118.112999 \r\n",
       "L 224.432912 118.112999 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 258.251094 224.64 \r\n",
       "L 292.069276 224.64 \r\n",
       "L 292.069276 130.304037 \r\n",
       "L 258.251094 130.304037 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_10\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 292.069276 224.64 \r\n",
       "L 325.887457 224.64 \r\n",
       "L 325.887457 143.790517 \r\n",
       "L 292.069276 143.790517 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_11\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 325.887457 224.64 \r\n",
       "L 359.705639 224.64 \r\n",
       "L 359.705639 75.640996 \r\n",
       "L 325.887457 75.640996 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_12\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 359.705639 224.64 \r\n",
       "L 393.523821 224.64 \r\n",
       "L 393.523821 49.639617 \r\n",
       "L 359.705639 49.639617 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_13\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 393.523821 224.64 \r\n",
       "L 427.342003 224.64 \r\n",
       "L 427.342003 143.582321 \r\n",
       "L 393.523821 143.582321 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_14\">\r\n",
       "    <path clip-path=\"url(#p138764031b)\" d=\"M 427.342003 224.64 \r\n",
       "L 461.160185 224.64 \r\n",
       "L 461.160185 170.694079 \r\n",
       "L 427.342003 170.694079 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_15\">\r\n",
       "    <path d=\"M 35.051094 224.64 \r\n",
       "L 35.051094 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_16\">\r\n",
       "    <path d=\"M 481.451094 224.64 \r\n",
       "L 481.451094 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_17\">\r\n",
       "    <path d=\"M 35.051094 224.64 \r\n",
       "L 481.451094 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_18\">\r\n",
       "    <path d=\"M 35.051094 7.2 \r\n",
       "L 481.451094 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p138764031b\">\r\n",
       "   <rect height=\"217.44\" width=\"446.4\" x=\"35.051094\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 576x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.loc[:, 'recency'].hist(figsize=(8, 4), bins=12, grid=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "29.99     7947\n",
       "81.20        9\n",
       "53.79        9\n",
       "60.51        8\n",
       "88.09        8\n",
       "          ... \n",
       "200.53       1\n",
       "234.76       1\n",
       "239.91       1\n",
       "99.85        1\n",
       "738.50       1\n",
       "Name: history, Length: 34833, dtype: int64"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.data.history.value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"248.884883pt\" version=\"1.1\" viewBox=\"0 0 500.979216 248.884883\" width=\"500.979216pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:49.833633</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 248.884883 \r\n",
       "L 500.979216 248.884883 \r\n",
       "L 500.979216 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 486.038867 224.64 \r\n",
       "L 486.038867 7.2 \r\n",
       "L 39.638867 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 56.259478 224.64 \r\n",
       "L 56.259478 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(53.965592 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 117.451506 224.64 \r\n",
       "L 117.451506 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(110.569846 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 178.643533 224.64 \r\n",
       "L 178.643533 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 1000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(169.467986 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_4\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 239.83556 224.64 \r\n",
       "L 239.83556 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 1500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(230.660013 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_5\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 301.027588 224.64 \r\n",
       "L 301.027588 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 2000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(291.852041 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_6\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 362.219615 224.64 \r\n",
       "L 362.219615 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 2500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(353.044068 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_7\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 423.411642 224.64 \r\n",
       "L 423.411642 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 3000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(414.236095 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 269 1209 \r\n",
       "L 831 1284 \r\n",
       "Q 928 806 1161 595 \r\n",
       "Q 1394 384 1728 384 \r\n",
       "Q 2125 384 2398 659 \r\n",
       "Q 2672 934 2672 1341 \r\n",
       "Q 2672 1728 2419 1979 \r\n",
       "Q 2166 2231 1775 2231 \r\n",
       "Q 1616 2231 1378 2169 \r\n",
       "L 1441 2663 \r\n",
       "Q 1497 2656 1531 2656 \r\n",
       "Q 1891 2656 2178 2843 \r\n",
       "Q 2466 3031 2466 3422 \r\n",
       "Q 2466 3731 2256 3934 \r\n",
       "Q 2047 4138 1716 4138 \r\n",
       "Q 1388 4138 1169 3931 \r\n",
       "Q 950 3725 888 3313 \r\n",
       "L 325 3413 \r\n",
       "Q 428 3978 793 4289 \r\n",
       "Q 1159 4600 1703 4600 \r\n",
       "Q 2078 4600 2393 4439 \r\n",
       "Q 2709 4278 2876 4000 \r\n",
       "Q 3044 3722 3044 3409 \r\n",
       "Q 3044 3113 2884 2869 \r\n",
       "Q 2725 2625 2413 2481 \r\n",
       "Q 2819 2388 3044 2092 \r\n",
       "Q 3269 1797 3269 1353 \r\n",
       "Q 3269 753 2831 336 \r\n",
       "Q 2394 -81 1725 -81 \r\n",
       "Q 1122 -81 723 278 \r\n",
       "Q 325 638 269 1209 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_8\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 484.603669 224.64 \r\n",
       "L 484.603669 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 3500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(475.428123 240.045195)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 224.64 \r\n",
       "L 486.038867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.551094 227.592598)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 196.458171 \r\n",
       "L 486.038867 196.458171 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(11.787773 199.410769)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 168.276342 \r\n",
       "L 486.038867 168.276342 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 171.22894)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 140.094514 \r\n",
       "L 486.038867 140.094514 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_12\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 143.047111)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_13\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 111.912685 \r\n",
       "L 486.038867 111.912685 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_13\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 114.865283)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_14\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 83.730856 \r\n",
       "L 486.038867 83.730856 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_14\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 86.683454)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_15\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 55.549027 \r\n",
       "L 486.038867 55.549027 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_15\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 58.501625)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_16\">\r\n",
       "      <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 39.638867 27.367198 \r\n",
       "L 486.038867 27.367198 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_16\">\r\n",
       "      <!-- 35000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 30.319796)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 59.929776 224.64 \r\n",
       "L 80.220685 224.64 \r\n",
       "L 80.220685 17.554286 \r\n",
       "L 59.929776 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 80.220685 224.64 \r\n",
       "L 100.511594 224.64 \r\n",
       "L 100.511594 148.932335 \r\n",
       "L 80.220685 148.932335 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 100.511594 224.64 \r\n",
       "L 120.802504 224.64 \r\n",
       "L 120.802504 187.687986 \r\n",
       "L 100.511594 187.687986 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 120.802504 224.64 \r\n",
       "L 141.093413 224.64 \r\n",
       "L 141.093413 205.572175 \r\n",
       "L 120.802504 205.572175 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 141.093413 224.64 \r\n",
       "L 161.384322 224.64 \r\n",
       "L 161.384322 214.607269 \r\n",
       "L 141.093413 214.607269 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 161.384322 224.64 \r\n",
       "L 181.675231 224.64 \r\n",
       "L 181.675231 219.578544 \r\n",
       "L 161.384322 219.578544 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 181.675231 224.64 \r\n",
       "L 201.96614 224.64 \r\n",
       "L 201.96614 221.844363 \r\n",
       "L 181.675231 221.844363 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_10\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 201.96614 224.64 \r\n",
       "L 222.257049 224.64 \r\n",
       "L 222.257049 222.875818 \r\n",
       "L 201.96614 222.875818 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_11\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 222.257049 224.64 \r\n",
       "L 242.547958 224.64 \r\n",
       "L 242.547958 223.642363 \r\n",
       "L 222.257049 223.642363 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_12\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 242.547958 224.64 \r\n",
       "L 262.838867 224.64 \r\n",
       "L 262.838867 224.076363 \r\n",
       "L 242.547958 224.076363 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_13\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 262.838867 224.64 \r\n",
       "L 283.129776 224.64 \r\n",
       "L 283.129776 224.369454 \r\n",
       "L 262.838867 224.369454 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_14\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 283.129776 224.64 \r\n",
       "L 303.420685 224.64 \r\n",
       "L 303.420685 224.442727 \r\n",
       "L 283.129776 224.442727 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_15\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 303.420685 224.64 \r\n",
       "L 323.711594 224.64 \r\n",
       "L 323.711594 224.527273 \r\n",
       "L 303.420685 224.527273 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_16\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 323.711594 224.64 \r\n",
       "L 344.002504 224.64 \r\n",
       "L 344.002504 224.617455 \r\n",
       "L 323.711594 224.617455 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_17\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 344.002504 224.64 \r\n",
       "L 364.293413 224.64 \r\n",
       "L 364.293413 224.623091 \r\n",
       "L 344.002504 224.623091 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_18\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 364.293413 224.64 \r\n",
       "L 384.584322 224.64 \r\n",
       "L 384.584322 224.628727 \r\n",
       "L 364.293413 224.628727 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_19\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 384.584322 224.64 \r\n",
       "L 404.875231 224.64 \r\n",
       "L 404.875231 224.606182 \r\n",
       "L 384.584322 224.606182 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_20\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 404.875231 224.64 \r\n",
       "L 425.16614 224.64 \r\n",
       "L 425.16614 224.623091 \r\n",
       "L 404.875231 224.623091 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_21\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 425.16614 224.64 \r\n",
       "L 445.457049 224.64 \r\n",
       "L 445.457049 224.634364 \r\n",
       "L 425.16614 224.634364 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_22\">\r\n",
       "    <path clip-path=\"url(#pf6d2d8953b)\" d=\"M 445.457049 224.64 \r\n",
       "L 465.747958 224.64 \r\n",
       "L 465.747958 224.628727 \r\n",
       "L 445.457049 224.628727 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_23\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 39.638867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_24\">\r\n",
       "    <path d=\"M 486.038867 224.64 \r\n",
       "L 486.038867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_25\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 486.038867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_26\">\r\n",
       "    <path d=\"M 39.638867 7.2 \r\n",
       "L 486.038867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"pf6d2d8953b\">\r\n",
       "   <rect height=\"217.44\" width=\"446.4\" x=\"39.638867\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 576x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.data.loc[:, 'history'].hist(figsize=(8, 4), bins=20, grid=True);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Target data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    Womens E-Mail\n",
       "1        No E-Mail\n",
       "2    Womens E-Mail\n",
       "3      Mens E-Mail\n",
       "4    Womens E-Mail\n",
       "Name: segment, dtype: object"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#dataset_segment\n",
    "dataset.treatment.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['Womens E-Mail', 'No E-Mail', 'Mens E-Mail'], dtype=object)"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.treatment.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"299.410977pt\" version=\"1.1\" viewBox=\"0 0 381.638867 299.410977\" width=\"381.638867pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:08:57.565502</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 299.410977 \r\n",
       "L 381.638867 299.410977 \r\n",
       "L 381.638867 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "L 39.638867 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 95.438867 224.64 \r\n",
       "L 95.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- Womens E-Mail -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(97.571621 292.210977)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1294 0 \r\n",
       "L 78 4581 \r\n",
       "L 700 4581 \r\n",
       "L 1397 1578 \r\n",
       "Q 1509 1106 1591 641 \r\n",
       "Q 1766 1375 1797 1488 \r\n",
       "L 2669 4581 \r\n",
       "L 3400 4581 \r\n",
       "L 4056 2263 \r\n",
       "Q 4303 1400 4413 641 \r\n",
       "Q 4500 1075 4641 1638 \r\n",
       "L 5359 4581 \r\n",
       "L 5969 4581 \r\n",
       "L 4713 0 \r\n",
       "L 4128 0 \r\n",
       "L 3163 3491 \r\n",
       "Q 3041 3928 3019 4028 \r\n",
       "Q 2947 3713 2884 3491 \r\n",
       "L 1913 0 \r\n",
       "L 1294 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-57\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 213 1659 \r\n",
       "Q 213 2581 725 3025 \r\n",
       "Q 1153 3394 1769 3394 \r\n",
       "Q 2453 3394 2887 2945 \r\n",
       "Q 3322 2497 3322 1706 \r\n",
       "Q 3322 1066 3130 698 \r\n",
       "Q 2938 331 2570 128 \r\n",
       "Q 2203 -75 1769 -75 \r\n",
       "Q 1072 -75 642 372 \r\n",
       "Q 213 819 213 1659 \r\n",
       "z\r\n",
       "M 791 1659 \r\n",
       "Q 791 1022 1069 705 \r\n",
       "Q 1347 388 1769 388 \r\n",
       "Q 2188 388 2466 706 \r\n",
       "Q 2744 1025 2744 1678 \r\n",
       "Q 2744 2294 2464 2611 \r\n",
       "Q 2184 2928 1769 2928 \r\n",
       "Q 1347 2928 1069 2612 \r\n",
       "Q 791 2297 791 1659 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6f\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 3319 \r\n",
       "L 925 3319 \r\n",
       "L 925 2853 \r\n",
       "Q 1081 3097 1340 3245 \r\n",
       "Q 1600 3394 1931 3394 \r\n",
       "Q 2300 3394 2536 3241 \r\n",
       "Q 2772 3088 2869 2813 \r\n",
       "Q 3263 3394 3894 3394 \r\n",
       "Q 4388 3394 4653 3120 \r\n",
       "Q 4919 2847 4919 2278 \r\n",
       "L 4919 0 \r\n",
       "L 4359 0 \r\n",
       "L 4359 2091 \r\n",
       "Q 4359 2428 4304 2576 \r\n",
       "Q 4250 2725 4106 2815 \r\n",
       "Q 3963 2906 3769 2906 \r\n",
       "Q 3419 2906 3187 2673 \r\n",
       "Q 2956 2441 2956 1928 \r\n",
       "L 2956 0 \r\n",
       "L 2394 0 \r\n",
       "L 2394 2156 \r\n",
       "Q 2394 2531 2256 2718 \r\n",
       "Q 2119 2906 1806 2906 \r\n",
       "Q 1569 2906 1367 2781 \r\n",
       "Q 1166 2656 1075 2415 \r\n",
       "Q 984 2175 984 1722 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6d\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2694 1069 \r\n",
       "L 3275 997 \r\n",
       "Q 3138 488 2766 206 \r\n",
       "Q 2394 -75 1816 -75 \r\n",
       "Q 1088 -75 661 373 \r\n",
       "Q 234 822 234 1631 \r\n",
       "Q 234 2469 665 2931 \r\n",
       "Q 1097 3394 1784 3394 \r\n",
       "Q 2450 3394 2872 2941 \r\n",
       "Q 3294 2488 3294 1666 \r\n",
       "Q 3294 1616 3291 1516 \r\n",
       "L 816 1516 \r\n",
       "Q 847 969 1125 678 \r\n",
       "Q 1403 388 1819 388 \r\n",
       "Q 2128 388 2347 550 \r\n",
       "Q 2566 713 2694 1069 \r\n",
       "z\r\n",
       "M 847 1978 \r\n",
       "L 2700 1978 \r\n",
       "Q 2663 2397 2488 2606 \r\n",
       "Q 2219 2931 1791 2931 \r\n",
       "Q 1403 2931 1139 2672 \r\n",
       "Q 875 2413 847 1978 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-65\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 3319 \r\n",
       "L 928 3319 \r\n",
       "L 928 2847 \r\n",
       "Q 1294 3394 1984 3394 \r\n",
       "Q 2284 3394 2536 3286 \r\n",
       "Q 2788 3178 2913 3003 \r\n",
       "Q 3038 2828 3088 2588 \r\n",
       "Q 3119 2431 3119 2041 \r\n",
       "L 3119 0 \r\n",
       "L 2556 0 \r\n",
       "L 2556 2019 \r\n",
       "Q 2556 2363 2490 2533 \r\n",
       "Q 2425 2703 2258 2804 \r\n",
       "Q 2091 2906 1866 2906 \r\n",
       "Q 1506 2906 1245 2678 \r\n",
       "Q 984 2450 984 1813 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6e\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 197 991 \r\n",
       "L 753 1078 \r\n",
       "Q 800 744 1014 566 \r\n",
       "Q 1228 388 1613 388 \r\n",
       "Q 2000 388 2187 545 \r\n",
       "Q 2375 703 2375 916 \r\n",
       "Q 2375 1106 2209 1216 \r\n",
       "Q 2094 1291 1634 1406 \r\n",
       "Q 1016 1563 777 1677 \r\n",
       "Q 538 1791 414 1992 \r\n",
       "Q 291 2194 291 2438 \r\n",
       "Q 291 2659 392 2848 \r\n",
       "Q 494 3038 669 3163 \r\n",
       "Q 800 3259 1026 3326 \r\n",
       "Q 1253 3394 1513 3394 \r\n",
       "Q 1903 3394 2198 3281 \r\n",
       "Q 2494 3169 2634 2976 \r\n",
       "Q 2775 2784 2828 2463 \r\n",
       "L 2278 2388 \r\n",
       "Q 2241 2644 2061 2787 \r\n",
       "Q 1881 2931 1553 2931 \r\n",
       "Q 1166 2931 1000 2803 \r\n",
       "Q 834 2675 834 2503 \r\n",
       "Q 834 2394 903 2306 \r\n",
       "Q 972 2216 1119 2156 \r\n",
       "Q 1203 2125 1616 2013 \r\n",
       "Q 2213 1853 2448 1751 \r\n",
       "Q 2684 1650 2818 1456 \r\n",
       "Q 2953 1263 2953 975 \r\n",
       "Q 2953 694 2789 445 \r\n",
       "Q 2625 197 2315 61 \r\n",
       "Q 2006 -75 1616 -75 \r\n",
       "Q 969 -75 630 194 \r\n",
       "Q 291 463 197 991 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-73\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path id=\"ArialMT-20\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 506 0 \r\n",
       "L 506 4581 \r\n",
       "L 3819 4581 \r\n",
       "L 3819 4041 \r\n",
       "L 1113 4041 \r\n",
       "L 1113 2638 \r\n",
       "L 3647 2638 \r\n",
       "L 3647 2100 \r\n",
       "L 1113 2100 \r\n",
       "L 1113 541 \r\n",
       "L 3925 541 \r\n",
       "L 3925 0 \r\n",
       "L 506 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-45\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 203 1375 \r\n",
       "L 203 1941 \r\n",
       "L 1931 1941 \r\n",
       "L 1931 1375 \r\n",
       "L 203 1375 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-2d\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 475 0 \r\n",
       "L 475 4581 \r\n",
       "L 1388 4581 \r\n",
       "L 2472 1338 \r\n",
       "Q 2622 884 2691 659 \r\n",
       "Q 2769 909 2934 1394 \r\n",
       "L 4031 4581 \r\n",
       "L 4847 4581 \r\n",
       "L 4847 0 \r\n",
       "L 4263 0 \r\n",
       "L 4263 3834 \r\n",
       "L 2931 0 \r\n",
       "L 2384 0 \r\n",
       "L 1059 3900 \r\n",
       "L 1059 0 \r\n",
       "L 475 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-4d\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 2588 409 \r\n",
       "Q 2275 144 1986 34 \r\n",
       "Q 1697 -75 1366 -75 \r\n",
       "Q 819 -75 525 192 \r\n",
       "Q 231 459 231 875 \r\n",
       "Q 231 1119 342 1320 \r\n",
       "Q 453 1522 633 1644 \r\n",
       "Q 813 1766 1038 1828 \r\n",
       "Q 1203 1872 1538 1913 \r\n",
       "Q 2219 1994 2541 2106 \r\n",
       "Q 2544 2222 2544 2253 \r\n",
       "Q 2544 2597 2384 2738 \r\n",
       "Q 2169 2928 1744 2928 \r\n",
       "Q 1347 2928 1158 2789 \r\n",
       "Q 969 2650 878 2297 \r\n",
       "L 328 2372 \r\n",
       "Q 403 2725 575 2942 \r\n",
       "Q 747 3159 1072 3276 \r\n",
       "Q 1397 3394 1825 3394 \r\n",
       "Q 2250 3394 2515 3294 \r\n",
       "Q 2781 3194 2906 3042 \r\n",
       "Q 3031 2891 3081 2659 \r\n",
       "Q 3109 2516 3109 2141 \r\n",
       "L 3109 1391 \r\n",
       "Q 3109 606 3145 398 \r\n",
       "Q 3181 191 3288 0 \r\n",
       "L 2700 0 \r\n",
       "Q 2613 175 2588 409 \r\n",
       "z\r\n",
       "M 2541 1666 \r\n",
       "Q 2234 1541 1622 1453 \r\n",
       "Q 1275 1403 1131 1340 \r\n",
       "Q 988 1278 909 1158 \r\n",
       "Q 831 1038 831 891 \r\n",
       "Q 831 666 1001 516 \r\n",
       "Q 1172 366 1500 366 \r\n",
       "Q 1825 366 2078 508 \r\n",
       "Q 2331 650 2450 897 \r\n",
       "Q 2541 1088 2541 1459 \r\n",
       "L 2541 1666 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-61\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 425 3934 \r\n",
       "L 425 4581 \r\n",
       "L 988 4581 \r\n",
       "L 988 3934 \r\n",
       "L 425 3934 \r\n",
       "z\r\n",
       "M 425 0 \r\n",
       "L 425 3319 \r\n",
       "L 988 3319 \r\n",
       "L 988 0 \r\n",
       "L 425 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-69\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 409 0 \r\n",
       "L 409 4581 \r\n",
       "L 972 4581 \r\n",
       "L 972 0 \r\n",
       "L 409 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6c\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-57\"/>\r\n",
       "       <use x=\"92.634766\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"148.25\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "       <use x=\"231.550781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"287.166016\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"342.78125\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "       <use x=\"392.78125\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "       <use x=\"420.564453\" xlink:href=\"#ArialMT-45\"/>\r\n",
       "       <use x=\"487.263672\" xlink:href=\"#ArialMT-2d\"/>\r\n",
       "       <use x=\"520.564453\" xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"603.865234\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "       <use x=\"659.480469\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"681.697266\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 207.038867 224.64 \r\n",
       "L 207.038867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- Mens E-Mail -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(209.171621 279.980352)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"83.300781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"138.916016\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"194.53125\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "       <use x=\"244.53125\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "       <use x=\"272.314453\" xlink:href=\"#ArialMT-45\"/>\r\n",
       "       <use x=\"339.013672\" xlink:href=\"#ArialMT-2d\"/>\r\n",
       "       <use x=\"372.314453\" xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"455.615234\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "       <use x=\"511.230469\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"533.447266\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_3\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 318.638867 224.64 \r\n",
       "L 318.638867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- No E-Mail -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(320.771621 270.353633)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 488 0 \r\n",
       "L 488 4581 \r\n",
       "L 1109 4581 \r\n",
       "L 3516 984 \r\n",
       "L 3516 4581 \r\n",
       "L 4097 4581 \r\n",
       "L 4097 0 \r\n",
       "L 3475 0 \r\n",
       "L 1069 3600 \r\n",
       "L 1069 0 \r\n",
       "L 488 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-4e\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-4e\"/>\r\n",
       "       <use x=\"72.216797\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"127.832031\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "       <use x=\"155.615234\" xlink:href=\"#ArialMT-45\"/>\r\n",
       "       <use x=\"222.314453\" xlink:href=\"#ArialMT-2d\"/>\r\n",
       "       <use x=\"255.615234\" xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"338.916016\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "       <use x=\"394.53125\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"416.748047\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.551094 227.592598)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 200.433038 \r\n",
       "L 374.438867 200.433038 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 2500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(11.787773 203.385636)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 176.226077 \r\n",
       "L 374.438867 176.226077 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(11.787773 179.178675)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 152.019115 \r\n",
       "L 374.438867 152.019115 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 7500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(11.787773 154.971713)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 303 3981 \r\n",
       "L 303 4522 \r\n",
       "L 3269 4522 \r\n",
       "L 3269 4084 \r\n",
       "Q 2831 3619 2401 2847 \r\n",
       "Q 1972 2075 1738 1259 \r\n",
       "Q 1569 684 1522 0 \r\n",
       "L 944 0 \r\n",
       "Q 953 541 1156 1306 \r\n",
       "Q 1359 2072 1739 2783 \r\n",
       "Q 2119 3494 2547 3981 \r\n",
       "L 303 3981 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-37\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-37\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 127.812154 \r\n",
       "L 374.438867 127.812154 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 130.764752)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 103.605192 \r\n",
       "L 374.438867 103.605192 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 12500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 106.55779)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 79.398231 \r\n",
       "L 374.438867 79.398231 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 82.350829)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 55.191269 \r\n",
       "L 374.438867 55.191269 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 17500 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 58.143867)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-37\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_9\">\r\n",
       "     <g id=\"line2d_12\">\r\n",
       "      <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 39.638867 30.984308 \r\n",
       "L 374.438867 30.984308 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_12\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 33.936906)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 67.538867 224.64 \r\n",
       "L 123.338867 224.64 \r\n",
       "L 123.338867 17.554286 \r\n",
       "L 67.538867 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 179.138867 224.64 \r\n",
       "L 234.938867 224.64 \r\n",
       "L 234.938867 18.328908 \r\n",
       "L 179.138867 18.328908 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path clip-path=\"url(#p8bc48a93b9)\" d=\"M 290.738867 224.64 \r\n",
       "L 346.538867 224.64 \r\n",
       "L 346.538867 18.338591 \r\n",
       "L 290.738867 18.338591 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 39.638867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_9\">\r\n",
       "    <path d=\"M 39.638867 7.2 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p8bc48a93b9\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"39.638867\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.treatment.value_counts().plot(kind = 'bar', grid = 'True')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    0\n",
       "1    0\n",
       "2    0\n",
       "3    0\n",
       "4    0\n",
       "Name: visit, dtype: int64"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#dataset_visit\n",
    "dataset.target.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"245.927773pt\" version=\"1.1\" viewBox=\"0 0 381.638867 245.927773\" width=\"381.638867pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:09:06.525209</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 245.927773 \r\n",
       "L 381.638867 245.927773 \r\n",
       "L 381.638867 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "L 39.638867 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 123.338867 224.64 \r\n",
       "L 123.338867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(125.471621 238.727773)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 290.738867 224.64 \r\n",
       "L 290.738867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 1 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(292.871621 238.727773)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.551094 227.592598)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 39.638867 186.716381 \r\n",
       "L 374.438867 186.716381 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 189.668979)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 39.638867 148.792762 \r\n",
       "L 374.438867 148.792762 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 151.74536)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 39.638867 110.869143 \r\n",
       "L 374.438867 110.869143 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 113.82174)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 269 1209 \r\n",
       "L 831 1284 \r\n",
       "Q 928 806 1161 595 \r\n",
       "Q 1394 384 1728 384 \r\n",
       "Q 2125 384 2398 659 \r\n",
       "Q 2672 934 2672 1341 \r\n",
       "Q 2672 1728 2419 1979 \r\n",
       "Q 2166 2231 1775 2231 \r\n",
       "Q 1616 2231 1378 2169 \r\n",
       "L 1441 2663 \r\n",
       "Q 1497 2656 1531 2656 \r\n",
       "Q 1891 2656 2178 2843 \r\n",
       "Q 2466 3031 2466 3422 \r\n",
       "Q 2466 3731 2256 3934 \r\n",
       "Q 2047 4138 1716 4138 \r\n",
       "Q 1388 4138 1169 3931 \r\n",
       "Q 950 3725 888 3313 \r\n",
       "L 325 3413 \r\n",
       "Q 428 3978 793 4289 \r\n",
       "Q 1159 4600 1703 4600 \r\n",
       "Q 2078 4600 2393 4439 \r\n",
       "Q 2709 4278 2876 4000 \r\n",
       "Q 3044 3722 3044 3409 \r\n",
       "Q 3044 3113 2884 2869 \r\n",
       "Q 2725 2625 2413 2481 \r\n",
       "Q 2819 2388 3044 2092 \r\n",
       "Q 3269 1797 3269 1353 \r\n",
       "Q 3269 753 2831 336 \r\n",
       "Q 2394 -81 1725 -81 \r\n",
       "Q 1122 -81 723 278 \r\n",
       "Q 325 638 269 1209 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 39.638867 72.945524 \r\n",
       "L 374.438867 72.945524 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 40000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 75.898121)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2069 0 \r\n",
       "L 2069 1097 \r\n",
       "L 81 1097 \r\n",
       "L 81 1613 \r\n",
       "L 2172 4581 \r\n",
       "L 2631 4581 \r\n",
       "L 2631 1613 \r\n",
       "L 3250 1613 \r\n",
       "L 3250 1097 \r\n",
       "L 2631 1097 \r\n",
       "L 2631 0 \r\n",
       "L 2069 0 \r\n",
       "z\r\n",
       "M 2069 1613 \r\n",
       "L 2069 3678 \r\n",
       "L 634 1613 \r\n",
       "L 2069 1613 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-34\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <path clip-path=\"url(#p32122fd6a7)\" d=\"M 39.638867 35.021905 \r\n",
       "L 374.438867 35.021905 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 50000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 37.974502)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p32122fd6a7)\" d=\"M 81.488867 224.64 \r\n",
       "L 165.188867 224.64 \r\n",
       "L 165.188867 17.554286 \r\n",
       "L 81.488867 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p32122fd6a7)\" d=\"M 248.888867 224.64 \r\n",
       "L 332.588867 224.64 \r\n",
       "L 332.588867 189.014552 \r\n",
       "L 248.888867 189.014552 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 39.638867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 39.638867 7.2 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p32122fd6a7\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"39.638867\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.target.value_counts().plot(kind = 'bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Target is disbalanced"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>visit</th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>segment</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Mens E-Mail</th>\n",
       "      <td>0.817243</td>\n",
       "      <td>0.182757</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>No E-Mail</th>\n",
       "      <td>0.893833</td>\n",
       "      <td>0.106167</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Womens E-Mail</th>\n",
       "      <td>0.848600</td>\n",
       "      <td>0.151400</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "visit                 0         1\n",
       "segment                          \n",
       "Mens E-Mail    0.817243  0.182757\n",
       "No E-Mail      0.893833  0.106167\n",
       "Womens E-Mail  0.848600  0.151400"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd \n",
    "\n",
    "pd.crosstab(dataset.treatment, dataset.target, normalize='index')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([0, 1], dtype=int64)"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dataset.target.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Text(0.5, 1.0, 'Treatment & Target')"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"273.772852pt\" version=\"1.1\" viewBox=\"0 0 237.215164 273.772852\" width=\"237.215164pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:09:18.995398</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 273.772852 \r\n",
       "L 237.215164 273.772852 \r\n",
       "L 237.215164 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 36.475664 237.191719 \r\n",
       "L 181.435664 237.191719 \r\n",
       "L 181.435664 19.751719 \r\n",
       "L 36.475664 19.751719 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(70.421777 252.596914)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 1 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(142.901777 252.596914)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"text_3\">\r\n",
       "     <!-- Target -->\r\n",
       "     <g style=\"fill:#262626;\" transform=\"translate(96.451992 264.678633)scale(0.09 -0.09)\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 1659 0 \r\n",
       "L 1659 4041 \r\n",
       "L 150 4041 \r\n",
       "L 150 4581 \r\n",
       "L 3781 4581 \r\n",
       "L 3781 4041 \r\n",
       "L 2266 4041 \r\n",
       "L 2266 0 \r\n",
       "L 1659 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-54\" transform=\"scale(0.015625)\"/>\r\n",
       "       <path d=\"M 2588 409 \r\n",
       "Q 2275 144 1986 34 \r\n",
       "Q 1697 -75 1366 -75 \r\n",
       "Q 819 -75 525 192 \r\n",
       "Q 231 459 231 875 \r\n",
       "Q 231 1119 342 1320 \r\n",
       "Q 453 1522 633 1644 \r\n",
       "Q 813 1766 1038 1828 \r\n",
       "Q 1203 1872 1538 1913 \r\n",
       "Q 2219 1994 2541 2106 \r\n",
       "Q 2544 2222 2544 2253 \r\n",
       "Q 2544 2597 2384 2738 \r\n",
       "Q 2169 2928 1744 2928 \r\n",
       "Q 1347 2928 1158 2789 \r\n",
       "Q 969 2650 878 2297 \r\n",
       "L 328 2372 \r\n",
       "Q 403 2725 575 2942 \r\n",
       "Q 747 3159 1072 3276 \r\n",
       "Q 1397 3394 1825 3394 \r\n",
       "Q 2250 3394 2515 3294 \r\n",
       "Q 2781 3194 2906 3042 \r\n",
       "Q 3031 2891 3081 2659 \r\n",
       "Q 3109 2516 3109 2141 \r\n",
       "L 3109 1391 \r\n",
       "Q 3109 606 3145 398 \r\n",
       "Q 3181 191 3288 0 \r\n",
       "L 2700 0 \r\n",
       "Q 2613 175 2588 409 \r\n",
       "z\r\n",
       "M 2541 1666 \r\n",
       "Q 2234 1541 1622 1453 \r\n",
       "Q 1275 1403 1131 1340 \r\n",
       "Q 988 1278 909 1158 \r\n",
       "Q 831 1038 831 891 \r\n",
       "Q 831 666 1001 516 \r\n",
       "Q 1172 366 1500 366 \r\n",
       "Q 1825 366 2078 508 \r\n",
       "Q 2331 650 2450 897 \r\n",
       "Q 2541 1088 2541 1459 \r\n",
       "L 2541 1666 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-61\" transform=\"scale(0.015625)\"/>\r\n",
       "       <path d=\"M 416 0 \r\n",
       "L 416 3319 \r\n",
       "L 922 3319 \r\n",
       "L 922 2816 \r\n",
       "Q 1116 3169 1280 3281 \r\n",
       "Q 1444 3394 1641 3394 \r\n",
       "Q 1925 3394 2219 3213 \r\n",
       "L 2025 2691 \r\n",
       "Q 1819 2813 1613 2813 \r\n",
       "Q 1428 2813 1281 2702 \r\n",
       "Q 1134 2591 1072 2394 \r\n",
       "Q 978 2094 978 1738 \r\n",
       "L 978 0 \r\n",
       "L 416 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-72\" transform=\"scale(0.015625)\"/>\r\n",
       "       <path d=\"M 319 -275 \r\n",
       "L 866 -356 \r\n",
       "Q 900 -609 1056 -725 \r\n",
       "Q 1266 -881 1628 -881 \r\n",
       "Q 2019 -881 2231 -725 \r\n",
       "Q 2444 -569 2519 -288 \r\n",
       "Q 2563 -116 2559 434 \r\n",
       "Q 2191 0 1641 0 \r\n",
       "Q 956 0 581 494 \r\n",
       "Q 206 988 206 1678 \r\n",
       "Q 206 2153 378 2554 \r\n",
       "Q 550 2956 876 3175 \r\n",
       "Q 1203 3394 1644 3394 \r\n",
       "Q 2231 3394 2613 2919 \r\n",
       "L 2613 3319 \r\n",
       "L 3131 3319 \r\n",
       "L 3131 450 \r\n",
       "Q 3131 -325 2973 -648 \r\n",
       "Q 2816 -972 2473 -1159 \r\n",
       "Q 2131 -1347 1631 -1347 \r\n",
       "Q 1038 -1347 672 -1080 \r\n",
       "Q 306 -813 319 -275 \r\n",
       "z\r\n",
       "M 784 1719 \r\n",
       "Q 784 1066 1043 766 \r\n",
       "Q 1303 466 1694 466 \r\n",
       "Q 2081 466 2343 764 \r\n",
       "Q 2606 1063 2606 1700 \r\n",
       "Q 2606 2309 2336 2618 \r\n",
       "Q 2066 2928 1684 2928 \r\n",
       "Q 1309 2928 1046 2623 \r\n",
       "Q 784 2319 784 1719 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-67\" transform=\"scale(0.015625)\"/>\r\n",
       "       <path d=\"M 2694 1069 \r\n",
       "L 3275 997 \r\n",
       "Q 3138 488 2766 206 \r\n",
       "Q 2394 -75 1816 -75 \r\n",
       "Q 1088 -75 661 373 \r\n",
       "Q 234 822 234 1631 \r\n",
       "Q 234 2469 665 2931 \r\n",
       "Q 1097 3394 1784 3394 \r\n",
       "Q 2450 3394 2872 2941 \r\n",
       "Q 3294 2488 3294 1666 \r\n",
       "Q 3294 1616 3291 1516 \r\n",
       "L 816 1516 \r\n",
       "Q 847 969 1125 678 \r\n",
       "Q 1403 388 1819 388 \r\n",
       "Q 2128 388 2347 550 \r\n",
       "Q 2566 713 2694 1069 \r\n",
       "z\r\n",
       "M 847 1978 \r\n",
       "L 2700 1978 \r\n",
       "Q 2663 2397 2488 2606 \r\n",
       "Q 2219 2931 1791 2931 \r\n",
       "Q 1403 2931 1139 2672 \r\n",
       "Q 875 2413 847 1978 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-65\" transform=\"scale(0.015625)\"/>\r\n",
       "       <path d=\"M 1650 503 \r\n",
       "L 1731 6 \r\n",
       "Q 1494 -44 1306 -44 \r\n",
       "Q 1000 -44 831 53 \r\n",
       "Q 663 150 594 308 \r\n",
       "Q 525 466 525 972 \r\n",
       "L 525 2881 \r\n",
       "L 113 2881 \r\n",
       "L 113 3319 \r\n",
       "L 525 3319 \r\n",
       "L 525 4141 \r\n",
       "L 1084 4478 \r\n",
       "L 1084 3319 \r\n",
       "L 1650 3319 \r\n",
       "L 1650 2881 \r\n",
       "L 1084 2881 \r\n",
       "L 1084 941 \r\n",
       "Q 1084 700 1114 631 \r\n",
       "Q 1144 563 1211 522 \r\n",
       "Q 1278 481 1403 481 \r\n",
       "Q 1497 481 1650 503 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-74\" transform=\"scale(0.015625)\"/>\r\n",
       "      </defs>\r\n",
       "      <use xlink:href=\"#ArialMT-54\"/>\r\n",
       "      <use x=\"49.958984\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "      <use x=\"105.574219\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "      <use x=\"138.875\" xlink:href=\"#ArialMT-67\"/>\r\n",
       "      <use x=\"194.490234\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "      <use x=\"250.105469\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- Mens E-Mail -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.335977 98.879473)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 475 0 \r\n",
       "L 475 4581 \r\n",
       "L 1388 4581 \r\n",
       "L 2472 1338 \r\n",
       "Q 2622 884 2691 659 \r\n",
       "Q 2769 909 2934 1394 \r\n",
       "L 4031 4581 \r\n",
       "L 4847 4581 \r\n",
       "L 4847 0 \r\n",
       "L 4263 0 \r\n",
       "L 4263 3834 \r\n",
       "L 2931 0 \r\n",
       "L 2384 0 \r\n",
       "L 1059 3900 \r\n",
       "L 1059 0 \r\n",
       "L 475 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-4d\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 3319 \r\n",
       "L 928 3319 \r\n",
       "L 928 2847 \r\n",
       "Q 1294 3394 1984 3394 \r\n",
       "Q 2284 3394 2536 3286 \r\n",
       "Q 2788 3178 2913 3003 \r\n",
       "Q 3038 2828 3088 2588 \r\n",
       "Q 3119 2431 3119 2041 \r\n",
       "L 3119 0 \r\n",
       "L 2556 0 \r\n",
       "L 2556 2019 \r\n",
       "Q 2556 2363 2490 2533 \r\n",
       "Q 2425 2703 2258 2804 \r\n",
       "Q 2091 2906 1866 2906 \r\n",
       "Q 1506 2906 1245 2678 \r\n",
       "Q 984 2450 984 1813 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6e\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 197 991 \r\n",
       "L 753 1078 \r\n",
       "Q 800 744 1014 566 \r\n",
       "Q 1228 388 1613 388 \r\n",
       "Q 2000 388 2187 545 \r\n",
       "Q 2375 703 2375 916 \r\n",
       "Q 2375 1106 2209 1216 \r\n",
       "Q 2094 1291 1634 1406 \r\n",
       "Q 1016 1563 777 1677 \r\n",
       "Q 538 1791 414 1992 \r\n",
       "Q 291 2194 291 2438 \r\n",
       "Q 291 2659 392 2848 \r\n",
       "Q 494 3038 669 3163 \r\n",
       "Q 800 3259 1026 3326 \r\n",
       "Q 1253 3394 1513 3394 \r\n",
       "Q 1903 3394 2198 3281 \r\n",
       "Q 2494 3169 2634 2976 \r\n",
       "Q 2775 2784 2828 2463 \r\n",
       "L 2278 2388 \r\n",
       "Q 2241 2644 2061 2787 \r\n",
       "Q 1881 2931 1553 2931 \r\n",
       "Q 1166 2931 1000 2803 \r\n",
       "Q 834 2675 834 2503 \r\n",
       "Q 834 2394 903 2306 \r\n",
       "Q 972 2216 1119 2156 \r\n",
       "Q 1203 2125 1616 2013 \r\n",
       "Q 2213 1853 2448 1751 \r\n",
       "Q 2684 1650 2818 1456 \r\n",
       "Q 2953 1263 2953 975 \r\n",
       "Q 2953 694 2789 445 \r\n",
       "Q 2625 197 2315 61 \r\n",
       "Q 2006 -75 1616 -75 \r\n",
       "Q 969 -75 630 194 \r\n",
       "Q 291 463 197 991 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-73\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path id=\"ArialMT-20\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 506 0 \r\n",
       "L 506 4581 \r\n",
       "L 3819 4581 \r\n",
       "L 3819 4041 \r\n",
       "L 1113 4041 \r\n",
       "L 1113 2638 \r\n",
       "L 3647 2638 \r\n",
       "L 3647 2100 \r\n",
       "L 1113 2100 \r\n",
       "L 1113 541 \r\n",
       "L 3925 541 \r\n",
       "L 3925 0 \r\n",
       "L 506 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-45\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 203 1375 \r\n",
       "L 203 1941 \r\n",
       "L 1931 1941 \r\n",
       "L 1931 1375 \r\n",
       "L 203 1375 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-2d\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 425 3934 \r\n",
       "L 425 4581 \r\n",
       "L 988 4581 \r\n",
       "L 988 3934 \r\n",
       "L 425 3934 \r\n",
       "z\r\n",
       "M 425 0 \r\n",
       "L 425 3319 \r\n",
       "L 988 3319 \r\n",
       "L 988 0 \r\n",
       "L 425 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-69\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 409 0 \r\n",
       "L 409 4581 \r\n",
       "L 972 4581 \r\n",
       "L 972 0 \r\n",
       "L 409 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6c\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"83.300781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"138.916016\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"194.53125\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "       <use x=\"244.53125\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "       <use x=\"272.314453\" xlink:href=\"#ArialMT-45\"/>\r\n",
       "       <use x=\"339.013672\" xlink:href=\"#ArialMT-2d\"/>\r\n",
       "       <use x=\"372.314453\" xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"455.615234\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "       <use x=\"511.230469\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"533.447266\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- No E-Mail -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.335977 161.732754)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 488 0 \r\n",
       "L 488 4581 \r\n",
       "L 1109 4581 \r\n",
       "L 3516 984 \r\n",
       "L 3516 4581 \r\n",
       "L 4097 4581 \r\n",
       "L 4097 0 \r\n",
       "L 3475 0 \r\n",
       "L 1069 3600 \r\n",
       "L 1069 0 \r\n",
       "L 488 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-4e\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 213 1659 \r\n",
       "Q 213 2581 725 3025 \r\n",
       "Q 1153 3394 1769 3394 \r\n",
       "Q 2453 3394 2887 2945 \r\n",
       "Q 3322 2497 3322 1706 \r\n",
       "Q 3322 1066 3130 698 \r\n",
       "Q 2938 331 2570 128 \r\n",
       "Q 2203 -75 1769 -75 \r\n",
       "Q 1072 -75 642 372 \r\n",
       "Q 213 819 213 1659 \r\n",
       "z\r\n",
       "M 791 1659 \r\n",
       "Q 791 1022 1069 705 \r\n",
       "Q 1347 388 1769 388 \r\n",
       "Q 2188 388 2466 706 \r\n",
       "Q 2744 1025 2744 1678 \r\n",
       "Q 2744 2294 2464 2611 \r\n",
       "Q 2184 2928 1769 2928 \r\n",
       "Q 1347 2928 1069 2612 \r\n",
       "Q 791 2297 791 1659 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6f\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-4e\"/>\r\n",
       "       <use x=\"72.216797\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"127.832031\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "       <use x=\"155.615234\" xlink:href=\"#ArialMT-45\"/>\r\n",
       "       <use x=\"222.314453\" xlink:href=\"#ArialMT-2d\"/>\r\n",
       "       <use x=\"255.615234\" xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"338.916016\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "       <use x=\"394.53125\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"416.748047\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- Womens E-Mail -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.335977 256.070098)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 1294 0 \r\n",
       "L 78 4581 \r\n",
       "L 700 4581 \r\n",
       "L 1397 1578 \r\n",
       "Q 1509 1106 1591 641 \r\n",
       "Q 1766 1375 1797 1488 \r\n",
       "L 2669 4581 \r\n",
       "L 3400 4581 \r\n",
       "L 4056 2263 \r\n",
       "Q 4303 1400 4413 641 \r\n",
       "Q 4500 1075 4641 1638 \r\n",
       "L 5359 4581 \r\n",
       "L 5969 4581 \r\n",
       "L 4713 0 \r\n",
       "L 4128 0 \r\n",
       "L 3163 3491 \r\n",
       "Q 3041 3928 3019 4028 \r\n",
       "Q 2947 3713 2884 3491 \r\n",
       "L 1913 0 \r\n",
       "L 1294 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-57\" transform=\"scale(0.015625)\"/>\r\n",
       "        <path d=\"M 422 0 \r\n",
       "L 422 3319 \r\n",
       "L 925 3319 \r\n",
       "L 925 2853 \r\n",
       "Q 1081 3097 1340 3245 \r\n",
       "Q 1600 3394 1931 3394 \r\n",
       "Q 2300 3394 2536 3241 \r\n",
       "Q 2772 3088 2869 2813 \r\n",
       "Q 3263 3394 3894 3394 \r\n",
       "Q 4388 3394 4653 3120 \r\n",
       "Q 4919 2847 4919 2278 \r\n",
       "L 4919 0 \r\n",
       "L 4359 0 \r\n",
       "L 4359 2091 \r\n",
       "Q 4359 2428 4304 2576 \r\n",
       "Q 4250 2725 4106 2815 \r\n",
       "Q 3963 2906 3769 2906 \r\n",
       "Q 3419 2906 3187 2673 \r\n",
       "Q 2956 2441 2956 1928 \r\n",
       "L 2956 0 \r\n",
       "L 2394 0 \r\n",
       "L 2394 2156 \r\n",
       "Q 2394 2531 2256 2718 \r\n",
       "Q 2119 2906 1806 2906 \r\n",
       "Q 1569 2906 1367 2781 \r\n",
       "Q 1166 2656 1075 2415 \r\n",
       "Q 984 2175 984 1722 \r\n",
       "L 984 0 \r\n",
       "L 422 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-6d\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-57\"/>\r\n",
       "       <use x=\"92.634766\" xlink:href=\"#ArialMT-6f\"/>\r\n",
       "       <use x=\"148.25\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "       <use x=\"231.550781\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "       <use x=\"287.166016\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "       <use x=\"342.78125\" xlink:href=\"#ArialMT-73\"/>\r\n",
       "       <use x=\"392.78125\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "       <use x=\"420.564453\" xlink:href=\"#ArialMT-45\"/>\r\n",
       "       <use x=\"487.263672\" xlink:href=\"#ArialMT-2d\"/>\r\n",
       "       <use x=\"520.564453\" xlink:href=\"#ArialMT-4d\"/>\r\n",
       "       <use x=\"603.865234\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "       <use x=\"659.480469\" xlink:href=\"#ArialMT-69\"/>\r\n",
       "       <use x=\"681.697266\" xlink:href=\"#ArialMT-6c\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"text_7\">\r\n",
       "     <!-- segment -->\r\n",
       "     <g style=\"fill:#262626;\" transform=\"translate(13.536563 145.729922)rotate(-90)scale(0.09 -0.09)\">\r\n",
       "      <use xlink:href=\"#ArialMT-73\"/>\r\n",
       "      <use x=\"50\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "      <use x=\"105.615234\" xlink:href=\"#ArialMT-67\"/>\r\n",
       "      <use x=\"161.230469\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "      <use x=\"244.53125\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "      <use x=\"300.146484\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "      <use x=\"355.761719\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"QuadMesh_1\">\r\n",
       "    <path clip-path=\"url(#p4f92a60476)\" d=\"M 36.475664 19.751719 \r\n",
       "L 108.955664 19.751719 \r\n",
       "L 108.955664 92.231719 \r\n",
       "L 36.475664 92.231719 \r\n",
       "L 36.475664 19.751719 \r\n",
       "\" style=\"fill:#6e0174;stroke:#ffffff;\"/>\r\n",
       "    <path clip-path=\"url(#p4f92a60476)\" d=\"M 108.955664 19.751719 \r\n",
       "L 181.435664 19.751719 \r\n",
       "L 181.435664 92.231719 \r\n",
       "L 108.955664 92.231719 \r\n",
       "L 108.955664 19.751719 \r\n",
       "\" style=\"fill:#fde6e2;stroke:#ffffff;\"/>\r\n",
       "    <path clip-path=\"url(#p4f92a60476)\" d=\"M 36.475664 92.231719 \r\n",
       "L 108.955664 92.231719 \r\n",
       "L 108.955664 164.711719 \r\n",
       "L 36.475664 164.711719 \r\n",
       "L 36.475664 92.231719 \r\n",
       "\" style=\"fill:#49006a;stroke:#ffffff;\"/>\r\n",
       "    <path clip-path=\"url(#p4f92a60476)\" d=\"M 108.955664 92.231719 \r\n",
       "L 181.435664 92.231719 \r\n",
       "L 181.435664 164.711719 \r\n",
       "L 108.955664 164.711719 \r\n",
       "L 108.955664 92.231719 \r\n",
       "\" style=\"fill:#fff7f3;stroke:#ffffff;\"/>\r\n",
       "    <path clip-path=\"url(#p4f92a60476)\" d=\"M 36.475664 164.711719 \r\n",
       "L 108.955664 164.711719 \r\n",
       "L 108.955664 237.191719 \r\n",
       "L 36.475664 237.191719 \r\n",
       "L 36.475664 164.711719 \r\n",
       "\" style=\"fill:#5f0070;stroke:#ffffff;\"/>\r\n",
       "    <path clip-path=\"url(#p4f92a60476)\" d=\"M 108.955664 164.711719 \r\n",
       "L 181.435664 164.711719 \r\n",
       "L 181.435664 237.191719 \r\n",
       "L 108.955664 237.191719 \r\n",
       "L 108.955664 164.711719 \r\n",
       "\" style=\"fill:#feede9;stroke:#ffffff;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_8\">\r\n",
       "    <!-- 0.82 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(63.958242 58.318359)scale(0.09 -0.09)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 581 0 \r\n",
       "L 581 641 \r\n",
       "L 1222 641 \r\n",
       "L 1222 0 \r\n",
       "L 581 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-2e\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 1131 2484 \r\n",
       "Q 781 2613 612 2850 \r\n",
       "Q 444 3088 444 3419 \r\n",
       "Q 444 3919 803 4259 \r\n",
       "Q 1163 4600 1759 4600 \r\n",
       "Q 2359 4600 2725 4251 \r\n",
       "Q 3091 3903 3091 3403 \r\n",
       "Q 3091 3084 2923 2848 \r\n",
       "Q 2756 2613 2416 2484 \r\n",
       "Q 2838 2347 3058 2040 \r\n",
       "Q 3278 1734 3278 1309 \r\n",
       "Q 3278 722 2862 322 \r\n",
       "Q 2447 -78 1769 -78 \r\n",
       "Q 1091 -78 675 323 \r\n",
       "Q 259 725 259 1325 \r\n",
       "Q 259 1772 486 2073 \r\n",
       "Q 713 2375 1131 2484 \r\n",
       "z\r\n",
       "M 1019 3438 \r\n",
       "Q 1019 3113 1228 2906 \r\n",
       "Q 1438 2700 1772 2700 \r\n",
       "Q 2097 2700 2305 2904 \r\n",
       "Q 2513 3109 2513 3406 \r\n",
       "Q 2513 3716 2298 3927 \r\n",
       "Q 2084 4138 1766 4138 \r\n",
       "Q 1444 4138 1231 3931 \r\n",
       "Q 1019 3725 1019 3438 \r\n",
       "z\r\n",
       "M 838 1322 \r\n",
       "Q 838 1081 952 856 \r\n",
       "Q 1066 631 1291 507 \r\n",
       "Q 1516 384 1775 384 \r\n",
       "Q 2178 384 2440 643 \r\n",
       "Q 2703 903 2703 1303 \r\n",
       "Q 2703 1709 2433 1975 \r\n",
       "Q 2163 2241 1756 2241 \r\n",
       "Q 1359 2241 1098 1978 \r\n",
       "Q 838 1716 838 1322 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-38\" transform=\"scale(0.015625)\"/>\r\n",
       "      <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_9\">\r\n",
       "    <!-- 0.18 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(136.438242 58.318359)scale(0.09 -0.09)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_10\">\r\n",
       "    <!-- 0.89 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(63.958242 130.798359)scale(0.09 -0.09)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 350 1059 \r\n",
       "L 891 1109 \r\n",
       "Q 959 728 1153 556 \r\n",
       "Q 1347 384 1650 384 \r\n",
       "Q 1909 384 2104 503 \r\n",
       "Q 2300 622 2425 820 \r\n",
       "Q 2550 1019 2634 1356 \r\n",
       "Q 2719 1694 2719 2044 \r\n",
       "Q 2719 2081 2716 2156 \r\n",
       "Q 2547 1888 2255 1720 \r\n",
       "Q 1963 1553 1622 1553 \r\n",
       "Q 1053 1553 659 1965 \r\n",
       "Q 266 2378 266 3053 \r\n",
       "Q 266 3750 677 4175 \r\n",
       "Q 1088 4600 1706 4600 \r\n",
       "Q 2153 4600 2523 4359 \r\n",
       "Q 2894 4119 3086 3673 \r\n",
       "Q 3278 3228 3278 2384 \r\n",
       "Q 3278 1506 3087 986 \r\n",
       "Q 2897 466 2520 194 \r\n",
       "Q 2144 -78 1638 -78 \r\n",
       "Q 1100 -78 759 220 \r\n",
       "Q 419 519 350 1059 \r\n",
       "z\r\n",
       "M 2653 3081 \r\n",
       "Q 2653 3566 2395 3850 \r\n",
       "Q 2138 4134 1775 4134 \r\n",
       "Q 1400 4134 1122 3828 \r\n",
       "Q 844 3522 844 3034 \r\n",
       "Q 844 2597 1108 2323 \r\n",
       "Q 1372 2050 1759 2050 \r\n",
       "Q 2150 2050 2401 2323 \r\n",
       "Q 2653 2597 2653 3081 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-39\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-39\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_11\">\r\n",
       "    <!-- 0.11 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(136.770117 130.798359)scale(0.09 -0.09)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"131.638672\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_12\">\r\n",
       "    <!-- 0.85 -->\r\n",
       "    <g style=\"fill:#ffffff;\" transform=\"translate(63.958242 203.278359)scale(0.09 -0.09)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_13\">\r\n",
       "    <!-- 0.15 -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(136.438242 203.278359)scale(0.09 -0.09)\">\r\n",
       "     <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "     <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "     <use x=\"83.398438\" xlink:href=\"#ArialMT-31\"/>\r\n",
       "     <use x=\"139.013672\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"text_14\">\r\n",
       "    <!-- Treatment &amp; Target -->\r\n",
       "    <g style=\"fill:#262626;\" transform=\"translate(70.692305 13.751719)scale(0.09 -0.09)\">\r\n",
       "     <defs>\r\n",
       "      <path d=\"M 3041 541 \r\n",
       "Q 2763 231 2434 76 \r\n",
       "Q 2106 -78 1725 -78 \r\n",
       "Q 1022 -78 609 397 \r\n",
       "Q 275 784 275 1263 \r\n",
       "Q 275 1688 548 2030 \r\n",
       "Q 822 2372 1366 2631 \r\n",
       "Q 1056 2988 953 3209 \r\n",
       "Q 850 3431 850 3638 \r\n",
       "Q 850 4050 1173 4354 \r\n",
       "Q 1497 4659 1988 4659 \r\n",
       "Q 2456 4659 2754 4371 \r\n",
       "Q 3053 4084 3053 3681 \r\n",
       "Q 3053 3028 2188 2566 \r\n",
       "L 3009 1519 \r\n",
       "Q 3150 1794 3228 2156 \r\n",
       "L 3813 2031 \r\n",
       "Q 3663 1431 3406 1044 \r\n",
       "Q 3722 625 4122 341 \r\n",
       "L 3744 -106 \r\n",
       "Q 3403 113 3041 541 \r\n",
       "z\r\n",
       "M 1897 2928 \r\n",
       "Q 2263 3144 2370 3306 \r\n",
       "Q 2478 3469 2478 3666 \r\n",
       "Q 2478 3900 2329 4048 \r\n",
       "Q 2181 4197 1959 4197 \r\n",
       "Q 1731 4197 1579 4050 \r\n",
       "Q 1428 3903 1428 3691 \r\n",
       "Q 1428 3584 1483 3467 \r\n",
       "Q 1538 3350 1647 3219 \r\n",
       "L 1897 2928 \r\n",
       "z\r\n",
       "M 2688 984 \r\n",
       "L 1656 2263 \r\n",
       "Q 1200 1991 1040 1758 \r\n",
       "Q 881 1525 881 1297 \r\n",
       "Q 881 1019 1103 719 \r\n",
       "Q 1325 419 1731 419 \r\n",
       "Q 1984 419 2254 576 \r\n",
       "Q 2525 734 2688 984 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-26\" transform=\"scale(0.015625)\"/>\r\n",
       "     </defs>\r\n",
       "     <use xlink:href=\"#ArialMT-54\"/>\r\n",
       "     <use x=\"57.333984\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "     <use x=\"90.634766\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "     <use x=\"146.25\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "     <use x=\"201.865234\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "     <use x=\"229.648438\" xlink:href=\"#ArialMT-6d\"/>\r\n",
       "     <use x=\"312.949219\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "     <use x=\"368.564453\" xlink:href=\"#ArialMT-6e\"/>\r\n",
       "     <use x=\"424.179688\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "     <use x=\"451.962891\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "     <use x=\"479.746094\" xlink:href=\"#ArialMT-26\"/>\r\n",
       "     <use x=\"546.445312\" xlink:href=\"#ArialMT-20\"/>\r\n",
       "     <use x=\"572.478516\" xlink:href=\"#ArialMT-54\"/>\r\n",
       "     <use x=\"622.4375\" xlink:href=\"#ArialMT-61\"/>\r\n",
       "     <use x=\"678.052734\" xlink:href=\"#ArialMT-72\"/>\r\n",
       "     <use x=\"711.353516\" xlink:href=\"#ArialMT-67\"/>\r\n",
       "     <use x=\"766.96875\" xlink:href=\"#ArialMT-65\"/>\r\n",
       "     <use x=\"822.583984\" xlink:href=\"#ArialMT-74\"/>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_2\">\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path d=\"M 198.175664 237.191719 \r\n",
       "L 209.047664 237.191719 \r\n",
       "L 209.047664 19.751719 \r\n",
       "L 198.175664 19.751719 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p7b65bbb3af)\" d=\"M 198.175664 237.191719 \r\n",
       "L 198.175664 236.342344 \r\n",
       "L 198.175664 20.601094 \r\n",
       "L 198.175664 19.751719 \r\n",
       "L 209.047664 19.751719 \r\n",
       "L 209.047664 20.601094 \r\n",
       "L 209.047664 236.342344 \r\n",
       "L 209.047664 237.191719 \r\n",
       "L 209.047664 237.191719 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;stroke:#eaeaf2;stroke-linejoin:miter;stroke-width:0.01;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_3\"/>\r\n",
       "   <g id=\"matplotlib.axis_4\">\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <defs>\r\n",
       "       <path d=\"M 0 0 \r\n",
       "L 6 0 \r\n",
       "\" id=\"m1aafa344b3\" style=\"stroke:#262626;stroke-width:1.25;\"/>\r\n",
       "      </defs>\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"211.288605\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_15\">\r\n",
       "      <!-- 0.2 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 214.241203)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-32\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"183.682977\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_16\">\r\n",
       "      <!-- 0.3 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 186.635574)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 269 1209 \r\n",
       "L 831 1284 \r\n",
       "Q 928 806 1161 595 \r\n",
       "Q 1394 384 1728 384 \r\n",
       "Q 2125 384 2398 659 \r\n",
       "Q 2672 934 2672 1341 \r\n",
       "Q 2672 1728 2419 1979 \r\n",
       "Q 2166 2231 1775 2231 \r\n",
       "Q 1616 2231 1378 2169 \r\n",
       "L 1441 2663 \r\n",
       "Q 1497 2656 1531 2656 \r\n",
       "Q 1891 2656 2178 2843 \r\n",
       "Q 2466 3031 2466 3422 \r\n",
       "Q 2466 3731 2256 3934 \r\n",
       "Q 2047 4138 1716 4138 \r\n",
       "Q 1388 4138 1169 3931 \r\n",
       "Q 950 3725 888 3313 \r\n",
       "L 325 3413 \r\n",
       "Q 428 3978 793 4289 \r\n",
       "Q 1159 4600 1703 4600 \r\n",
       "Q 2078 4600 2393 4439 \r\n",
       "Q 2709 4278 2876 4000 \r\n",
       "Q 3044 3722 3044 3409 \r\n",
       "Q 3044 3113 2884 2869 \r\n",
       "Q 2725 2625 2413 2481 \r\n",
       "Q 2819 2388 3044 2092 \r\n",
       "Q 3269 1797 3269 1353 \r\n",
       "Q 3269 753 2831 336 \r\n",
       "Q 2394 -81 1725 -81 \r\n",
       "Q 1122 -81 723 278 \r\n",
       "Q 325 638 269 1209 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-33\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"156.077348\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_17\">\r\n",
       "      <!-- 0.4 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 159.029945)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2069 0 \r\n",
       "L 2069 1097 \r\n",
       "L 81 1097 \r\n",
       "L 81 1613 \r\n",
       "L 2172 4581 \r\n",
       "L 2631 4581 \r\n",
       "L 2631 1613 \r\n",
       "L 3250 1613 \r\n",
       "L 3250 1097 \r\n",
       "L 2631 1097 \r\n",
       "L 2631 0 \r\n",
       "L 2069 0 \r\n",
       "z\r\n",
       "M 2069 1613 \r\n",
       "L 2069 3678 \r\n",
       "L 634 1613 \r\n",
       "L 2069 1613 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-34\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"128.471719\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_18\">\r\n",
       "      <!-- 0.5 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 131.424316)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"100.86609\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_19\">\r\n",
       "      <!-- 0.6 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 103.818688)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3184 3459 \r\n",
       "L 2625 3416 \r\n",
       "Q 2550 3747 2413 3897 \r\n",
       "Q 2184 4138 1850 4138 \r\n",
       "Q 1581 4138 1378 3988 \r\n",
       "Q 1113 3794 959 3422 \r\n",
       "Q 806 3050 800 2363 \r\n",
       "Q 1003 2672 1297 2822 \r\n",
       "Q 1591 2972 1913 2972 \r\n",
       "Q 2475 2972 2870 2558 \r\n",
       "Q 3266 2144 3266 1488 \r\n",
       "Q 3266 1056 3080 686 \r\n",
       "Q 2894 316 2569 119 \r\n",
       "Q 2244 -78 1831 -78 \r\n",
       "Q 1128 -78 684 439 \r\n",
       "Q 241 956 241 2144 \r\n",
       "Q 241 3472 731 4075 \r\n",
       "Q 1159 4600 1884 4600 \r\n",
       "Q 2425 4600 2770 4297 \r\n",
       "Q 3116 3994 3184 3459 \r\n",
       "z\r\n",
       "M 888 1484 \r\n",
       "Q 888 1194 1011 928 \r\n",
       "Q 1134 663 1356 523 \r\n",
       "Q 1578 384 1822 384 \r\n",
       "Q 2178 384 2434 671 \r\n",
       "Q 2691 959 2691 1453 \r\n",
       "Q 2691 1928 2437 2201 \r\n",
       "Q 2184 2475 1800 2475 \r\n",
       "Q 1419 2475 1153 2201 \r\n",
       "Q 888 1928 888 1484 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-36\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-36\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_9\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"73.260461\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_20\">\r\n",
       "      <!-- 0.7 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 76.213059)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 303 3981 \r\n",
       "L 303 4522 \r\n",
       "L 3269 4522 \r\n",
       "L 3269 4084 \r\n",
       "Q 2831 3619 2401 2847 \r\n",
       "Q 1972 2075 1738 1259 \r\n",
       "Q 1569 684 1522 0 \r\n",
       "L 944 0 \r\n",
       "Q 953 541 1156 1306 \r\n",
       "Q 1359 2072 1739 2783 \r\n",
       "Q 2119 3494 2547 3981 \r\n",
       "L 303 3981 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-37\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-37\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_10\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <g>\r\n",
       "       <use style=\"fill:#262626;stroke:#262626;stroke-width:1.25;\" x=\"209.047664\" xlink:href=\"#m1aafa344b3\" y=\"45.654832\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_21\">\r\n",
       "      <!-- 0.8 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(218.547664 48.60743)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-2e\"/>\r\n",
       "       <use x=\"83.398438\" xlink:href=\"#ArialMT-38\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <image height=\"217\" id=\"imagece83947ffc\" transform=\"scale(1 -1)translate(0 -217)\" width=\"11\" x=\"198\" xlink:href=\"data:image/png;base64,\r\n",
       "iVBORw0KGgoAAAANSUhEUgAAAAsAAADZCAYAAAD2WsoCAAABT0lEQVR4nO2aMQ7DMAwD1cL/f2yHTpbVsauuwAFKkcwEQVGU7AR51PtV0XyeXWBExIpqE2MwkQHQq85pg6/pRvULpMxEM2mKKGMGuG43vo85VmC61TzPWAX/74a0+cfk+Q7/z+CjMYtutLGxIoecKYSZNAWowO1GzAQs3usI+IrZ0ApkQRpSIMqzF9EhzGhvoPAzn0csxtjeodnGmtaxgd3aC683g97lBGVjyHGMrEvSbsKMCixknSeDtFsskDETMDroEbMYfiQDgI927UFuDBmrk4DZ23Ve6lCBjJl9OfGY29hYSTb/Ye0mBXrtJjKSLUZUoGUdkoEKNNtt7Q3EjMLPzhRvFSDr2tCIleQTHDADgpFmxDymQEsGsm4z5iHWAfCYdiNmSzO49UAZ3sB61qFseAV6PnvhN9eXFn72XwFg9gZWdEMM/4ixggVKPn8A0uuMG6k1IuUAAAAASUVORK5CYII=\" y=\"-19\"/>\r\n",
       "   <g id=\"LineCollection_1\"/>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 198.175664 237.191719 \r\n",
       "L 198.175664 236.342344 \r\n",
       "L 198.175664 20.601094 \r\n",
       "L 198.175664 19.751719 \r\n",
       "L 209.047664 19.751719 \r\n",
       "L 209.047664 20.601094 \r\n",
       "L 209.047664 236.342344 \r\n",
       "L 209.047664 237.191719 \r\n",
       "z\r\n",
       "\" style=\"fill:none;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p4f92a60476\">\r\n",
       "   <rect height=\"217.44\" width=\"144.96\" x=\"36.475664\" y=\"19.751719\"/>\r\n",
       "  </clipPath>\r\n",
       "  <clipPath id=\"p7b65bbb3af\">\r\n",
       "   <rect height=\"217.44\" width=\"10.872\" x=\"198.175664\" y=\"19.751719\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "crosstab = pd.crosstab(dataset.treatment, dataset.target, normalize='index')\n",
    "    \n",
    "sns.heatmap(crosstab, annot=True, fmt=\".2f\", linewidths=1, square = True, cmap = 'RdPu')\n",
    "plt.xlabel('Target')\n",
    "plt.title(\"Treatment & Target\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Let's consider two cases: \n",
    "#1) Womens E-mail - No E-mail\n",
    "#2) Mens E-mail - No E-mail"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Womens E-mail - No E-mail"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [],
   "source": [
    "# make treatment binary\n",
    "treat_dict_womens = {\n",
    "            'Womens E-Mail': 1,\n",
    "            'No E-Mail': 0, \n",
    "            'Mens E-Mail': 0\n",
    "            }\n",
    "dataset.treatment_womens = dataset.treatment.map(treat_dict_womens)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"245.927773pt\" version=\"1.1\" viewBox=\"0 0 381.638867 245.927773\" width=\"381.638867pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:10:54.968145</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 245.927773 \r\n",
       "L 381.638867 245.927773 \r\n",
       "L 381.638867 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "L 39.638867 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 123.338867 224.64 \r\n",
       "L 123.338867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(125.471621 238.727773)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 290.738867 224.64 \r\n",
       "L 290.738867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 1 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(292.871621 238.727773)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.551094 227.592598)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 200.34158 \r\n",
       "L 374.438867 200.34158 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(11.787773 203.294178)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 176.04316 \r\n",
       "L 374.438867 176.04316 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 178.995758)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 151.74474 \r\n",
       "L 374.438867 151.74474 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 154.697338)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 127.44632 \r\n",
       "L 374.438867 127.44632 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 130.398918)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 103.1479 \r\n",
       "L 374.438867 103.1479 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 106.100498)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 78.84948 \r\n",
       "L 374.438867 78.84948 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 81.802078)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 269 1209 \r\n",
       "L 831 1284 \r\n",
       "Q 928 806 1161 595 \r\n",
       "Q 1394 384 1728 384 \r\n",
       "Q 2125 384 2398 659 \r\n",
       "Q 2672 934 2672 1341 \r\n",
       "Q 2672 1728 2419 1979 \r\n",
       "Q 2166 2231 1775 2231 \r\n",
       "Q 1616 2231 1378 2169 \r\n",
       "L 1441 2663 \r\n",
       "Q 1497 2656 1531 2656 \r\n",
       "Q 1891 2656 2178 2843 \r\n",
       "Q 2466 3031 2466 3422 \r\n",
       "Q 2466 3731 2256 3934 \r\n",
       "Q 2047 4138 1716 4138 \r\n",
       "Q 1388 4138 1169 3931 \r\n",
       "Q 950 3725 888 3313 \r\n",
       "L 325 3413 \r\n",
       "Q 428 3978 793 4289 \r\n",
       "Q 1159 4600 1703 4600 \r\n",
       "Q 2078 4600 2393 4439 \r\n",
       "Q 2709 4278 2876 4000 \r\n",
       "Q 3044 3722 3044 3409 \r\n",
       "Q 3044 3113 2884 2869 \r\n",
       "Q 2725 2625 2413 2481 \r\n",
       "Q 2819 2388 3044 2092 \r\n",
       "Q 3269 1797 3269 1353 \r\n",
       "Q 3269 753 2831 336 \r\n",
       "Q 2394 -81 1725 -81 \r\n",
       "Q 1122 -81 723 278 \r\n",
       "Q 325 638 269 1209 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 54.55106 \r\n",
       "L 374.438867 54.55106 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 35000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 57.503658)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_9\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p24aa49b683)\" d=\"M 39.638867 30.25264 \r\n",
       "L 374.438867 30.25264 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 40000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 33.205238)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2069 0 \r\n",
       "L 2069 1097 \r\n",
       "L 81 1097 \r\n",
       "L 81 1613 \r\n",
       "L 2172 4581 \r\n",
       "L 2631 4581 \r\n",
       "L 2631 1613 \r\n",
       "L 3250 1613 \r\n",
       "L 3250 1097 \r\n",
       "L 2631 1097 \r\n",
       "L 2631 0 \r\n",
       "L 2069 0 \r\n",
       "z\r\n",
       "M 2069 1613 \r\n",
       "L 2069 3678 \r\n",
       "L 634 1613 \r\n",
       "L 2069 1613 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-34\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p24aa49b683)\" d=\"M 81.488867 224.64 \r\n",
       "L 165.188867 224.64 \r\n",
       "L 165.188867 17.554286 \r\n",
       "L 81.488867 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p24aa49b683)\" d=\"M 248.888867 224.64 \r\n",
       "L 332.588867 224.64 \r\n",
       "L 332.588867 120.705938 \r\n",
       "L 248.888867 120.705938 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 39.638867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 39.638867 7.2 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p24aa49b683\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"39.638867\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.treatment_womens.value_counts().plot(kind = 'bar', grid = 'True')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [],
   "source": [
    "stratify_cols = pd.concat([dataset.treatment_womens, dataset.target], axis=1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>segment</th>\n",
       "      <th>visit</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   segment  visit\n",
       "0        1      0\n",
       "1        0      0\n",
       "2        1      0\n",
       "3        0      0\n",
       "4        1      0"
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stratify_cols.head(5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Train shape: (44800, 8)\n",
      "Validation shape: (19200, 8)\n"
     ]
    }
   ],
   "source": [
    "from sklearn.model_selection import train_test_split\n",
    "\n",
    "stratify_cols = pd.concat([dataset.treatment_womens, dataset.target], axis=1)\n",
    "\n",
    "X_train, X_val, trmnt_train, trmnt_val, y_train, y_val = train_test_split(\n",
    "    dataset.data,\n",
    "    dataset.treatment_womens,\n",
    "    dataset.target,\n",
    "    stratify=stratify_cols,\n",
    "    test_size=0.3,\n",
    "    random_state=42\n",
    ")\n",
    "\n",
    "print(f\"Train shape: {X_train.shape}\")\n",
    "print(f\"Validation shape: {X_val.shape}\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [],
   "source": [
    "from sklift.models import ClassTransformation\n",
    "from catboost import CatBoostClassifier\n",
    "\n",
    "estimator = CatBoostClassifier(verbose=100, \n",
    "                               cat_features=['womens', 'mens','channel', 'zip_code', 'history_segment', 'newbie'],\n",
    "                               random_state=42,\n",
    "                               thread_count=1\n",
    "                              )\n",
    "\n",
    "ct_model = ClassTransformation(estimator=estimator)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-52-cd313cbcd08e>:1: UserWarning: It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.\n",
      "  ct_model.fit(\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Learning rate set to 0.052243\n",
      "0:\tlearn: 0.6900041\ttotal: 307ms\tremaining: 5m 7s\n",
      "100:\tlearn: 0.6610229\ttotal: 13.5s\tremaining: 1m 59s\n",
      "200:\tlearn: 0.6594380\ttotal: 26.7s\tremaining: 1m 45s\n",
      "300:\tlearn: 0.6569047\ttotal: 42.9s\tremaining: 1m 39s\n",
      "400:\tlearn: 0.6546442\ttotal: 1m\tremaining: 1m 30s\n",
      "500:\tlearn: 0.6523825\ttotal: 1m 17s\tremaining: 1m 17s\n",
      "600:\tlearn: 0.6504138\ttotal: 1m 38s\tremaining: 1m 5s\n",
      "700:\tlearn: 0.6482230\ttotal: 1m 57s\tremaining: 50.2s\n",
      "800:\tlearn: 0.6463583\ttotal: 2m 13s\tremaining: 33.3s\n",
      "900:\tlearn: 0.6445439\ttotal: 2m 31s\tremaining: 16.6s\n",
      "999:\tlearn: 0.6427664\ttotal: 2m 46s\tremaining: 0us\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "ClassTransformation(estimator=<catboost.core.CatBoostClassifier object at 0x000002A4F0164A60>)"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ct_model.fit(\n",
    "    X=X_train, \n",
    "    y=y_train, \n",
    "    treatment=trmnt_train\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "#in progress with multiclassclassifier for Catboost. "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [],
   "source": [
    "from sklift.metrics import uplift_at_k"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [],
   "source": [
    "uplift_predictions = ct_model.predict(X_val)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "uplift@10%: 0.0314 (sort groups by uplift together)\n",
      "uplift@10%: 0.0333 (sort groups by uplift separately)\n"
     ]
    }
   ],
   "source": [
    "# k = 10%\n",
    "k = 0.1  \n",
    "\n",
    "# strategy='overall' sort by uplift treatment and control together\n",
    "uplift_overall = uplift_at_k(y_val, uplift_predictions, trmnt_val, strategy='overall', k=k)\n",
    "\n",
    "# strategy='by_group' sort by uplift treatment and control separately\n",
    "uplift_bygroup = uplift_at_k(y_val, uplift_predictions, trmnt_val, strategy='by_group', k=k)\n",
    "\n",
    "\n",
    "print(f\"uplift@{k * 100:.0f}%: {uplift_overall:.4f} (sort groups by uplift together)\")\n",
    "print(f\"uplift@{k * 100:.0f}%: {uplift_bygroup:.4f} (sort groups by uplift separately)\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Mens E-mail - No E-mail"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [],
   "source": [
    "treat_dict_mens = {\n",
    "            'Mens E-Mail': 1,\n",
    "            'No E-Mail': 0, \n",
    "            'Womens E-Mail': 0\n",
    "            }\n",
    "dataset.treatment_mens = dataset.treatment.map(treat_dict_mens)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [],
   "source": [
    "dataset.treatment_mens = dataset.treatment.map(treat_dict_mens)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<AxesSubplot:>"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
       "<svg height=\"245.927773pt\" version=\"1.1\" viewBox=\"0 0 381.638867 245.927773\" width=\"381.638867pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
       " <metadata>\r\n",
       "  <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n",
       "   <cc:Work>\r\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n",
       "    <dc:date>2021-07-30T19:20:17.529811</dc:date>\r\n",
       "    <dc:format>image/svg+xml</dc:format>\r\n",
       "    <dc:creator>\r\n",
       "     <cc:Agent>\r\n",
       "      <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\r\n",
       "     </cc:Agent>\r\n",
       "    </dc:creator>\r\n",
       "   </cc:Work>\r\n",
       "  </rdf:RDF>\r\n",
       " </metadata>\r\n",
       " <defs>\r\n",
       "  <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n",
       " </defs>\r\n",
       " <g id=\"figure_1\">\r\n",
       "  <g id=\"patch_1\">\r\n",
       "   <path d=\"M 0 245.927773 \r\n",
       "L 381.638867 245.927773 \r\n",
       "L 381.638867 0 \r\n",
       "L 0 0 \r\n",
       "z\r\n",
       "\" style=\"fill:#ffffff;\"/>\r\n",
       "  </g>\r\n",
       "  <g id=\"axes_1\">\r\n",
       "   <g id=\"patch_2\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "L 39.638867 7.2 \r\n",
       "z\r\n",
       "\" style=\"fill:#eaeaf2;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_1\">\r\n",
       "    <g id=\"xtick_1\">\r\n",
       "     <g id=\"line2d_1\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 123.338867 224.64 \r\n",
       "L 123.338867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_1\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(125.471621 238.727773)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 2259 \r\n",
       "Q 266 3072 433 3567 \r\n",
       "Q 600 4063 929 4331 \r\n",
       "Q 1259 4600 1759 4600 \r\n",
       "Q 2128 4600 2406 4451 \r\n",
       "Q 2684 4303 2865 4023 \r\n",
       "Q 3047 3744 3150 3342 \r\n",
       "Q 3253 2941 3253 2259 \r\n",
       "Q 3253 1453 3087 958 \r\n",
       "Q 2922 463 2592 192 \r\n",
       "Q 2263 -78 1759 -78 \r\n",
       "Q 1097 -78 719 397 \r\n",
       "Q 266 969 266 2259 \r\n",
       "z\r\n",
       "M 844 2259 \r\n",
       "Q 844 1131 1108 757 \r\n",
       "Q 1372 384 1759 384 \r\n",
       "Q 2147 384 2411 759 \r\n",
       "Q 2675 1134 2675 2259 \r\n",
       "Q 2675 3391 2411 3762 \r\n",
       "Q 2147 4134 1753 4134 \r\n",
       "Q 1366 4134 1134 3806 \r\n",
       "Q 844 3388 844 2259 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-30\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"xtick_2\">\r\n",
       "     <g id=\"line2d_2\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 290.738867 224.64 \r\n",
       "L 290.738867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_2\">\r\n",
       "      <!-- 1 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(292.871621 238.727773)rotate(-90)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2384 0 \r\n",
       "L 1822 0 \r\n",
       "L 1822 3584 \r\n",
       "Q 1619 3391 1289 3197 \r\n",
       "Q 959 3003 697 2906 \r\n",
       "L 697 3450 \r\n",
       "Q 1169 3672 1522 3987 \r\n",
       "Q 1875 4303 2022 4600 \r\n",
       "L 2384 4600 \r\n",
       "L 2384 0 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-31\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"matplotlib.axis_2\">\r\n",
       "    <g id=\"ytick_1\">\r\n",
       "     <g id=\"line2d_3\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_3\">\r\n",
       "      <!-- 0 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(25.551094 227.592598)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_2\">\r\n",
       "     <g id=\"line2d_4\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 200.387111 \r\n",
       "L 374.438867 200.387111 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_4\">\r\n",
       "      <!-- 5000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(11.787773 203.339709)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 266 1200 \r\n",
       "L 856 1250 \r\n",
       "Q 922 819 1161 601 \r\n",
       "Q 1400 384 1738 384 \r\n",
       "Q 2144 384 2425 690 \r\n",
       "Q 2706 997 2706 1503 \r\n",
       "Q 2706 1984 2436 2262 \r\n",
       "Q 2166 2541 1728 2541 \r\n",
       "Q 1456 2541 1237 2417 \r\n",
       "Q 1019 2294 894 2097 \r\n",
       "L 366 2166 \r\n",
       "L 809 4519 \r\n",
       "L 3088 4519 \r\n",
       "L 3088 3981 \r\n",
       "L 1259 3981 \r\n",
       "L 1013 2750 \r\n",
       "Q 1425 3038 1878 3038 \r\n",
       "Q 2478 3038 2890 2622 \r\n",
       "Q 3303 2206 3303 1553 \r\n",
       "Q 3303 931 2941 478 \r\n",
       "Q 2500 -78 1738 -78 \r\n",
       "Q 1113 -78 717 272 \r\n",
       "Q 322 622 266 1200 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-35\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_3\">\r\n",
       "     <g id=\"line2d_5\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 176.134223 \r\n",
       "L 374.438867 176.134223 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_5\">\r\n",
       "      <!-- 10000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 179.086821)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_4\">\r\n",
       "     <g id=\"line2d_6\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 151.881334 \r\n",
       "L 374.438867 151.881334 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_6\">\r\n",
       "      <!-- 15000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 154.833932)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-31\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_5\">\r\n",
       "     <g id=\"line2d_7\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 127.628446 \r\n",
       "L 374.438867 127.628446 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_7\">\r\n",
       "      <!-- 20000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 130.581043)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 3222 541 \r\n",
       "L 3222 0 \r\n",
       "L 194 0 \r\n",
       "Q 188 203 259 391 \r\n",
       "Q 375 700 629 1000 \r\n",
       "Q 884 1300 1366 1694 \r\n",
       "Q 2113 2306 2375 2664 \r\n",
       "Q 2638 3022 2638 3341 \r\n",
       "Q 2638 3675 2398 3904 \r\n",
       "Q 2159 4134 1775 4134 \r\n",
       "Q 1369 4134 1125 3890 \r\n",
       "Q 881 3647 878 3216 \r\n",
       "L 300 3275 \r\n",
       "Q 359 3922 746 4261 \r\n",
       "Q 1134 4600 1788 4600 \r\n",
       "Q 2447 4600 2831 4234 \r\n",
       "Q 3216 3869 3216 3328 \r\n",
       "Q 3216 3053 3103 2787 \r\n",
       "Q 2991 2522 2730 2228 \r\n",
       "Q 2469 1934 1863 1422 \r\n",
       "Q 1356 997 1212 845 \r\n",
       "Q 1069 694 975 541 \r\n",
       "L 3222 541 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-32\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_6\">\r\n",
       "     <g id=\"line2d_8\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 103.375557 \r\n",
       "L 374.438867 103.375557 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_8\">\r\n",
       "      <!-- 25000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 106.328155)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-32\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_7\">\r\n",
       "     <g id=\"line2d_9\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 79.122669 \r\n",
       "L 374.438867 79.122669 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_9\">\r\n",
       "      <!-- 30000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 82.075266)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 269 1209 \r\n",
       "L 831 1284 \r\n",
       "Q 928 806 1161 595 \r\n",
       "Q 1394 384 1728 384 \r\n",
       "Q 2125 384 2398 659 \r\n",
       "Q 2672 934 2672 1341 \r\n",
       "Q 2672 1728 2419 1979 \r\n",
       "Q 2166 2231 1775 2231 \r\n",
       "Q 1616 2231 1378 2169 \r\n",
       "L 1441 2663 \r\n",
       "Q 1497 2656 1531 2656 \r\n",
       "Q 1891 2656 2178 2843 \r\n",
       "Q 2466 3031 2466 3422 \r\n",
       "Q 2466 3731 2256 3934 \r\n",
       "Q 2047 4138 1716 4138 \r\n",
       "Q 1388 4138 1169 3931 \r\n",
       "Q 950 3725 888 3313 \r\n",
       "L 325 3413 \r\n",
       "Q 428 3978 793 4289 \r\n",
       "Q 1159 4600 1703 4600 \r\n",
       "Q 2078 4600 2393 4439 \r\n",
       "Q 2709 4278 2876 4000 \r\n",
       "Q 3044 3722 3044 3409 \r\n",
       "Q 3044 3113 2884 2869 \r\n",
       "Q 2725 2625 2413 2481 \r\n",
       "Q 2819 2388 3044 2092 \r\n",
       "Q 3269 1797 3269 1353 \r\n",
       "Q 3269 753 2831 336 \r\n",
       "Q 2394 -81 1725 -81 \r\n",
       "Q 1122 -81 723 278 \r\n",
       "Q 325 638 269 1209 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-33\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_8\">\r\n",
       "     <g id=\"line2d_10\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 54.86978 \r\n",
       "L 374.438867 54.86978 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_10\">\r\n",
       "      <!-- 35000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 57.822378)scale(0.0825 -0.0825)\">\r\n",
       "       <use xlink:href=\"#ArialMT-33\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-35\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "    <g id=\"ytick_9\">\r\n",
       "     <g id=\"line2d_11\">\r\n",
       "      <path clip-path=\"url(#p9ee682f111)\" d=\"M 39.638867 30.616891 \r\n",
       "L 374.438867 30.616891 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\r\n",
       "     </g>\r\n",
       "     <g id=\"text_11\">\r\n",
       "      <!-- 40000 -->\r\n",
       "      <g style=\"fill:#262626;\" transform=\"translate(7.2 33.569489)scale(0.0825 -0.0825)\">\r\n",
       "       <defs>\r\n",
       "        <path d=\"M 2069 0 \r\n",
       "L 2069 1097 \r\n",
       "L 81 1097 \r\n",
       "L 81 1613 \r\n",
       "L 2172 4581 \r\n",
       "L 2631 4581 \r\n",
       "L 2631 1613 \r\n",
       "L 3250 1613 \r\n",
       "L 3250 1097 \r\n",
       "L 2631 1097 \r\n",
       "L 2631 0 \r\n",
       "L 2069 0 \r\n",
       "z\r\n",
       "M 2069 1613 \r\n",
       "L 2069 3678 \r\n",
       "L 634 1613 \r\n",
       "L 2069 1613 \r\n",
       "z\r\n",
       "\" id=\"ArialMT-34\" transform=\"scale(0.015625)\"/>\r\n",
       "       </defs>\r\n",
       "       <use xlink:href=\"#ArialMT-34\"/>\r\n",
       "       <use x=\"55.615234\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"111.230469\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"166.845703\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "       <use x=\"222.460938\" xlink:href=\"#ArialMT-30\"/>\r\n",
       "      </g>\r\n",
       "     </g>\r\n",
       "    </g>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_3\">\r\n",
       "    <path clip-path=\"url(#p9ee682f111)\" d=\"M 81.488867 224.64 \r\n",
       "L 165.188867 224.64 \r\n",
       "L 165.188867 17.554286 \r\n",
       "L 81.488867 17.554286 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_4\">\r\n",
       "    <path clip-path=\"url(#p9ee682f111)\" d=\"M 248.888867 224.64 \r\n",
       "L 332.588867 224.64 \r\n",
       "L 332.588867 121.288741 \r\n",
       "L 248.888867 121.288741 \r\n",
       "z\r\n",
       "\" style=\"fill:#4c72b0;stroke:#ffffff;stroke-linejoin:miter;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_5\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 39.638867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_6\">\r\n",
       "    <path d=\"M 374.438867 224.64 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_7\">\r\n",
       "    <path d=\"M 39.638867 224.64 \r\n",
       "L 374.438867 224.64 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "   <g id=\"patch_8\">\r\n",
       "    <path d=\"M 39.638867 7.2 \r\n",
       "L 374.438867 7.2 \r\n",
       "\" style=\"fill:none;stroke:#ffffff;stroke-linecap:square;stroke-linejoin:miter;stroke-width:1.25;\"/>\r\n",
       "   </g>\r\n",
       "  </g>\r\n",
       " </g>\r\n",
       " <defs>\r\n",
       "  <clipPath id=\"p9ee682f111\">\r\n",
       "   <rect height=\"217.44\" width=\"334.8\" x=\"39.638867\" y=\"7.2\"/>\r\n",
       "  </clipPath>\r\n",
       " </defs>\r\n",
       "</svg>\r\n"
      ],
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "dataset.treatment_mens.value_counts().plot(kind = 'bar', grid = 'True')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [],
   "source": [
    "stratify_cols = pd.concat([dataset.treatment_mens, dataset.target], axis=1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Train shape: (44800, 8)\n",
      "Validation shape: (19200, 8)\n"
     ]
    }
   ],
   "source": [
    "from sklearn.model_selection import train_test_split\n",
    "\n",
    "stratify_cols = pd.concat([dataset.treatment_mens, dataset.target], axis=1)\n",
    "\n",
    "X_train, X_val, trmnt_train, trmnt_val, y_train, y_val = train_test_split(\n",
    "    dataset.data,\n",
    "    dataset.treatment_mens,\n",
    "    dataset.target,\n",
    "    stratify=stratify_cols,\n",
    "    test_size=0.3,\n",
    "    random_state=42\n",
    ")\n",
    "\n",
    "print(f\"Train shape: {X_train.shape}\")\n",
    "print(f\"Validation shape: {X_val.shape}\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [],
   "source": [
    "from sklift.models import ClassTransformation\n",
    "from catboost import CatBoostClassifier\n",
    "\n",
    "estimator = CatBoostClassifier(verbose=100, \n",
    "                               cat_features=['womens', 'mens','channel', 'zip_code', 'history_segment', 'newbie'],\n",
    "                               random_state=42,\n",
    "                               thread_count=1\n",
    "                              )\n",
    "\n",
    "ct_model_mens = ClassTransformation(estimator=estimator)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-66-e628cd1d416a>:1: UserWarning: It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.\n",
      "  ct_model_mens.fit(\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Learning rate set to 0.052243\n",
      "0:\tlearn: 0.6888651\ttotal: 196ms\tremaining: 3m 16s\n",
      "100:\tlearn: 0.6507044\ttotal: 13.2s\tremaining: 1m 57s\n",
      "200:\tlearn: 0.6493217\ttotal: 26.4s\tremaining: 1m 44s\n",
      "300:\tlearn: 0.6466936\ttotal: 42.3s\tremaining: 1m 38s\n",
      "400:\tlearn: 0.6437030\ttotal: 58.1s\tremaining: 1m 26s\n",
      "500:\tlearn: 0.6413201\ttotal: 1m 14s\tremaining: 1m 14s\n",
      "600:\tlearn: 0.6390236\ttotal: 1m 30s\tremaining: 1m\n",
      "700:\tlearn: 0.6366626\ttotal: 1m 47s\tremaining: 45.7s\n",
      "800:\tlearn: 0.6342987\ttotal: 2m 3s\tremaining: 30.8s\n",
      "900:\tlearn: 0.6322623\ttotal: 2m 21s\tremaining: 15.5s\n",
      "999:\tlearn: 0.6303012\ttotal: 2m 37s\tremaining: 0us\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "ClassTransformation(estimator=<catboost.core.CatBoostClassifier object at 0x000002A4F02320A0>)"
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ct_model_mens.fit(\n",
    "    X=X_train, \n",
    "    y=y_train, \n",
    "    treatment=trmnt_train\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [],
   "source": [
    "uplift_predictions_mens = ct_model_mens.predict(X_val)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "uplift@10%: 0.0654 (sort groups by uplift_mens together)\n",
      "uplift@10%: 0.0635 (sort groups by uplift_mens separately)\n"
     ]
    }
   ],
   "source": [
    "# k = 10%\n",
    "k = 0.1  \n",
    "\n",
    "# strategy='overall' sort by uplift treatment and control together\n",
    "uplift_overall_mens = uplift_at_k(y_val, uplift_predictions_mens, trmnt_val, strategy='overall', k=k)\n",
    "\n",
    "# strategy='by_group' sort by uplift treatment and control separately\n",
    "uplift_bygroup_mens = uplift_at_k(y_val, uplift_predictions_mens, trmnt_val, strategy='by_group', k=k)\n",
    "\n",
    "\n",
    "print(f\"uplift@{k * 100:.0f}%: {uplift_overall_mens:.4f} (sort groups by uplift_mens together)\")\n",
    "print(f\"uplift@{k * 100:.0f}%: {uplift_bygroup_mens:.4f} (sort groups by uplift_mens separately)\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
